9 lines
206 B
Rust
9 lines
206 B
Rust
|
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>")
|
||
|
}
|