Ntex, index route

This commit is contained in:
DarkCat09 2024-02-22 12:22:40 +04:00
parent 454d10a071
commit 4b6b3f7da4
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3
4 changed files with 1219 additions and 2 deletions

8
src/pages.rs Normal file
View 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>")
}