feat: Added base layout

This commit is contained in:
Cyper committed 2026-02-28 01:24:08 -05:00
1 parent 91ee0abc15
commit d267d1c6c1
5 files changed
+34 -3

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ async fn not_found(OriginalUri(uri): OriginalUri) -> AppError {
}
pub fn app() -> Router<Config> {
let static_files = ServeDir::new("static").not_found_service(get(not_found));
let static_files = ServeDir::new("public").not_found_service(get(not_found));
Router::new()
.merge(routes::router())
+3 -1
View File
@@ -14,7 +14,9 @@ async fn main() {
// Build app with shared state
let app = app::app().with_state(config);
let listener = tokio::net::TcpListener::bind("0.0.0.0:7878").await.unwrap();
let app_ip = "0.0.0.0:7878";
let listener = tokio::net::TcpListener::bind(&app_ip).await.unwrap();
println!("Listening on http://localhost:7878");
axum::serve(listener, app).await.unwrap();
}