бля а вот это почему так
This commit is contained in:
parent
f312b82671
commit
6ce578a5eb
@ -25,12 +25,11 @@ pub async fn main() -> std::io::Result<()> {
|
||||
.app_data(web::Data::new(loyalty::LoyaltyService {
|
||||
db: loyalty::db::DbService::new(),
|
||||
}))
|
||||
.service(Files::new("/", "./static/").index_file("index.html"))
|
||||
|
||||
.service(loyalty::get_cats)
|
||||
.service(loyalty::get_colors)
|
||||
.service(loyalty::add_cat)
|
||||
.service(loyalty::add_color)
|
||||
.service(Files::new("/", "./static/").index_file("index.html"))
|
||||
})
|
||||
.bind((app.host, app.port))?
|
||||
.run()
|
||||
|
Loading…
Reference in New Issue
Block a user