Ntex, index route
This commit is contained in:
parent
454d10a071
commit
4b6b3f7da4
4 changed files with 1219 additions and 2 deletions
src
8
src/pages.rs
Normal file
8
src/pages.rs
Normal file
|
@ -0,0 +1,8 @@
|
|||
use ntex::web::{self, HttpResponse};
|
||||
|
||||
#[web::get("/")]
|
||||
pub async fn index() -> HttpResponse {
|
||||
HttpResponse::Ok()
|
||||
.content_type("text/html; charset=utf-8")
|
||||
.body("<h1>dc09's bin</h1>")
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue