Update Dependencies

This commit is contained in:
spikecodes 2021-01-10 13:20:47 -08:00
parent f445c42f55
commit c58b077330
4 changed files with 82 additions and 69 deletions

View file

@ -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