Refractor route code.

This commit is contained in:
Paul Makles
2020-12-28 18:32:13 +00:00
parent c748b4349b
commit 16c5a28637
10 changed files with 52 additions and 2319 deletions

View File

@@ -0,0 +1,7 @@
use crate::util::result::Result;
#[get("/<id>")]
pub async fn req(id: String) -> Result<String> {
println!("{}", id);
Ok("LETS FUCKING GOOOO".to_string())
}

9
src/routes/users/mod.rs Normal file
View File

@@ -0,0 +1,9 @@
use rocket::Route;
mod fetch_user;
pub fn routes() -> Vec<Route> {
routes! [
fetch_user::req
]
}