diff options
Diffstat (limited to 'src/api/routes')
-rw-r--r-- | src/api/routes/mod.rs | 1 | ||||
-rw-r--r-- | src/api/routes/test.rs | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/src/api/routes/mod.rs b/src/api/routes/mod.rs new file mode 100644 index 0000000..7b788c2 --- /dev/null +++ b/src/api/routes/mod.rs @@ -0,0 +1 @@ +pub mod test; diff --git a/src/api/routes/test.rs b/src/api/routes/test.rs new file mode 100644 index 0000000..718c634 --- /dev/null +++ b/src/api/routes/test.rs @@ -0,0 +1,9 @@ +use rocket::get; +use rocket::serde::json::Json; + +use crate::db::models::auth::LoginSession; + +#[get("/test")] +pub fn testroute(session: LoginSession) -> Json<LoginSession> { + Json(session) +} |