summaryrefslogtreecommitdiff
path: root/server/src/api_model.rs
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@spawned.biz>2024-12-29 20:37:26 +0100
committerJoel Klinghed <the_jk@spawned.biz>2024-12-29 20:37:26 +0100
commit7bc8e8b7262a3f3abe3222b3b434838e85cdb2bb (patch)
tree4f5abb6180a069126cd787310942d5d7f8436768 /server/src/api_model.rs
parent0aa2545b703f5240a8208a07da8ab20b8bc6d1aa (diff)
Rework auth to include session
The actual authentication is still fake.
Diffstat (limited to 'server/src/api_model.rs')
-rw-r--r--server/src/api_model.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/server/src/api_model.rs b/server/src/api_model.rs
index 1c02f6c..286e11f 100644
--- a/server/src/api_model.rs
+++ b/server/src/api_model.rs
@@ -1,4 +1,4 @@
-use serde::Serialize;
+use rocket::serde::Serialize;
#[derive(Serialize, Copy, Clone)]
pub enum ReviewState {
@@ -68,3 +68,10 @@ pub struct Projects {
pub more: bool,
pub projects: Vec<ProjectEntry>,
}
+
+#[derive(Serialize)]
+pub struct StatusResponse {
+ pub ok: bool,
+ #[serde(skip_serializing_if = "Option::is_none")]
+ pub error: Option<String>,
+}