File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11#[ cfg( feature = "ssr" ) ]
22#[ tokio:: main]
33async 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 ( )
You can’t perform that action at this time.
0 commit comments