mirror of
https://github.com/cupcakearmy/cryptgeon.git
synced 2026-04-02 09:55:23 +00:00
fallback route & dep updates
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
use actix_files::Files;
|
||||
use actix_web::web;
|
||||
use actix_files::{Files, NamedFile};
|
||||
use actix_web::{web, Result};
|
||||
|
||||
pub fn init(cfg: &mut web::ServiceConfig) {
|
||||
cfg.service(
|
||||
@@ -8,3 +8,7 @@ pub fn init(cfg: &mut web::ServiceConfig) {
|
||||
.use_etag(true),
|
||||
);
|
||||
}
|
||||
|
||||
pub async fn index() -> Result<NamedFile> {
|
||||
Ok(NamedFile::open("./frontend/build/index.html")?)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user