chore: remove dead code in actix tailwind example (#2160)

This commit is contained in:
Paul Hansen 2024-01-07 14:29:15 -06:00 committed by GitHub
parent f5bf539148
commit bbcef811f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<()> {
@ -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())