Skip to content

Commit

Permalink
Cleanup some dead code in actix tailwind example
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-hansen committed Jan 5, 2024
1 parent 16cf3c4 commit 93d9168
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions examples/tailwind_actix/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ cfg_if! {
use crate::app::*;
use leptos_actix::{generate_route_list, LeptosRoutes};

#[get("/style.css")]
async fn css() -> impl Responder {
actix_files::NamedFile::open_async("./style/output.css").await
}

#[actix_web::main]
async fn main() -> std::io::Result<()> {

Expand All @@ -30,7 +25,6 @@ cfg_if! {
let site_root = &leptos_options.site_root;
let routes = &routes;
App::new()
.service(css)
.leptos_routes(leptos_options.to_owned(), routes.to_owned(), || view! { <App/> })
.service(Files::new("/", site_root))
.wrap(middleware::Compress::default())
Expand Down

0 comments on commit 93d9168

Please sign in to comment.