1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 09:59:21 +02:00

refactor logger middleware

This commit is contained in:
Nikolay Kim
2017-11-23 15:17:16 -08:00
parent 5945035fc3
commit e571587a8c
2 changed files with 145 additions and 101 deletions

View File

@ -50,7 +50,7 @@ fn main() {
HttpServer::new(
Application::default("/")
// enable logger
//.middleware(middlewares::Logger::default())
.middleware(middlewares::Logger::default())
// register simple handle r, handle all methods
.handler("/index.html", index)
// with path parameters