embed static assets and remove frontend workspace

This commit is contained in:
realaravinth
2021-04-09 17:40:40 +05:30
parent 4948f9885c
commit d3851ea38e
113 changed files with 92 additions and 10420 deletions

View File

@@ -33,6 +33,7 @@ mod errors;
mod api;
mod docs;
mod settings;
mod static_assets;
mod templates;
#[cfg(test)]
#[macro_use]
@@ -91,8 +92,9 @@ async fn main() -> std::io::Result<()> {
.configure(v1::services)
.configure(docs::services)
.configure(templates::services)
.configure(static_assets::services)
.app_data(get_json_err())
.service(Files::new("/", "./prod"))
// .service(Files::new("/", "./prod"))
})
.bind(SETTINGS.server.get_ip())
.unwrap()