Skip to content

Commit 533f25d

Browse files
committed
Merge branch 'main' of github.com-zeldan:rust-dd/tryrust.org
2 parents 2f9f0ed + 6f620fe commit 533f25d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#[cfg(feature = "ssr")]
22
#[tokio::main]
33
async fn main() {
4+
use axum::http::StatusCode;
45
use axum::Router;
56
use chrono::{Duration, Utc};
67
use leptos::*;
78
use leptos_axum::{generate_route_list, LeptosRoutes};
9+
use tryrust::fileserv::file_and_error_handler;
810
use std::fs;
911
use tokio_cron_scheduler::{Job, JobScheduler};
1012
use tower_http::trace::TraceLayer;
11-
use tryrust::app::*;
12-
use tryrust::fileserv::file_and_error_handler;
13+
use tryrust::app::App;
1314
use tryrust::redirect::redirect_www;
1415

1516
tracing_subscriber::fmt()
@@ -63,6 +64,7 @@ async fn main() {
6364
// build our application with a route
6465
let app = Router::new()
6566
.leptos_routes(&leptos_options, routes, App)
67+
// TODO: new version in v.0.7.0
6668
.fallback(file_and_error_handler)
6769
.layer(
6870
tower::ServiceBuilder::new()

0 commit comments

Comments
 (0)