mirror of https://github.com/fafhrd91/actix-web
fix fmratting
This commit is contained in:
parent
a163e75318
commit
03f7d95d88
|
@ -19,7 +19,6 @@ has same url path prefix:
|
||||||
# fn index(req: HttpRequest) -> &'static str {
|
# fn index(req: HttpRequest) -> &'static str {
|
||||||
# "Hello world!"
|
# "Hello world!"
|
||||||
# }
|
# }
|
||||||
|
|
||||||
# fn main() {
|
# fn main() {
|
||||||
let app = Application::default("/prefix")
|
let app = Application::default("/prefix")
|
||||||
.resource("/index.html", |r| r.method(Method::GET).handler(index))
|
.resource("/index.html", |r| r.method(Method::GET).handler(index))
|
||||||
|
|
Loading…
Reference in New Issue