mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
chore: remove dead code in actix tailwind example (#2160)
This commit is contained in:
parent
f5bf539148
commit
bbcef811f4
1 changed files with 0 additions and 6 deletions
|
@ -9,11 +9,6 @@ cfg_if! {
|
||||||
use crate::app::*;
|
use crate::app::*;
|
||||||
use leptos_actix::{generate_route_list, LeptosRoutes};
|
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]
|
#[actix_web::main]
|
||||||
async fn main() -> std::io::Result<()> {
|
async fn main() -> std::io::Result<()> {
|
||||||
|
|
||||||
|
@ -30,7 +25,6 @@ cfg_if! {
|
||||||
let site_root = &leptos_options.site_root;
|
let site_root = &leptos_options.site_root;
|
||||||
let routes = &routes;
|
let routes = &routes;
|
||||||
App::new()
|
App::new()
|
||||||
.service(css)
|
|
||||||
.leptos_routes(leptos_options.to_owned(), routes.to_owned(), || view! { <App/> })
|
.leptos_routes(leptos_options.to_owned(), routes.to_owned(), || view! { <App/> })
|
||||||
.service(Files::new("/", site_root))
|
.service(Files::new("/", site_root))
|
||||||
.wrap(middleware::Compress::default())
|
.wrap(middleware::Compress::default())
|
||||||
|
|
Loading…
Reference in a new issue