mirror of
https://github.com/redlib-org/redlib.git
synced 2025-06-07 23:27:51 +00:00
Update Dependencies
This commit is contained in:
parent
f445c42f55
commit
c58b077330
4 changed files with 82 additions and 69 deletions
|
@ -1,5 +1,5 @@
|
|||
// Import Crates
|
||||
use actix_web::{App, HttpResponse, HttpServer, get, middleware, web}; // dev::Service
|
||||
use actix_web::{get, middleware, web, App, HttpResponse, HttpServer}; // dev::Service
|
||||
|
||||
// Reference local files
|
||||
mod post;
|
||||
|
@ -59,7 +59,7 @@ async fn main() -> std::io::Result<()> {
|
|||
// }
|
||||
// })
|
||||
// TRAILING SLASH MIDDLEWARE
|
||||
.wrap( middleware::NormalizePath::default())
|
||||
.wrap(middleware::NormalizePath::default())
|
||||
// DEFAULT SERVICE
|
||||
.default_service(web::get().to(|| utils::error("Nothing here".to_string())))
|
||||
// GENERAL SERVICES
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue