Skip to content

Commit

Permalink
Merge branch 'main' of github.com-zeldan:rust-dd/tryrust.org
Browse files Browse the repository at this point in the history
  • Loading branch information
zeldan committed Nov 29, 2024
2 parents 2f9f0ed + 6f620fe commit 533f25d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#[cfg(feature = "ssr")]
#[tokio::main]
async fn main() {
use axum::http::StatusCode;
use axum::Router;
use chrono::{Duration, Utc};
use leptos::*;
use leptos_axum::{generate_route_list, LeptosRoutes};
use tryrust::fileserv::file_and_error_handler;
use std::fs;
use tokio_cron_scheduler::{Job, JobScheduler};
use tower_http::trace::TraceLayer;
use tryrust::app::*;
use tryrust::fileserv::file_and_error_handler;
use tryrust::app::App;
use tryrust::redirect::redirect_www;

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

0 comments on commit 533f25d

Please sign in to comment.