summary refs log tree commit diff
path: root/src/api/routes/test.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/routes/test.rs')
-rw-r--r--src/api/routes/test.rs9
1 files changed, 9 insertions, 0 deletions
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)
+}