build(format): move rust formatting to prettier
parent
748346fa6e
commit
ca429aaccc
@ -1,11 +1,11 @@
|
|||||||
use rapid_web::actix::HttpResponse;
|
use rapid_web::actix::HttpResponse;
|
||||||
use rapid_web::{rapid_web_codegen::rapid_handler, welcome_view};
|
use rapid_web::{ rapid_web_codegen::rapid_handler, welcome_view };
|
||||||
|
|
||||||
pub const ROUTE_KEY: &str = "index";
|
pub const ROUTE_KEY: &str = "index";
|
||||||
|
|
||||||
#[rapid_handler]
|
#[rapid_handler]
|
||||||
pub async fn query() -> HttpResponse {
|
pub async fn query() -> HttpResponse {
|
||||||
HttpResponse::Ok()
|
HttpResponse::Ok()
|
||||||
.content_type("text/html; charset=utf-8")
|
.content_type("text/html; charset=utf-8")
|
||||||
.body(welcome_view)
|
.body(welcome_view)
|
||||||
}
|
}
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
pub mod index;
|
pub mod echo;
|
||||||
pub mod hello;
|
pub mod hello;
|
||||||
|
pub mod index;
|
||||||
|
Loading…
Reference in New Issue