feat: initial REST endpoints and websocket

/create
/delete
/ws
This commit is contained in:
2023-06-10 18:54:23 +02:00
parent 5501b63379
commit 6e845907d1
9 changed files with 1476 additions and 3 deletions

View File

@@ -1 +1,19 @@
use serde::Deserialize;
use serde::Serialize;
#[derive(Clone, Debug, Serialize, Deserialize)]
pub struct Achievement {
pub goal: String,
pub completed: bool,
pub uuid: uuid::Uuid,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CreateAchievement {
pub goal: String,
}
#[derive(Debug, Serialize, Clone, Deserialize)]
pub struct DeleteAchievement {
pub uuid: uuid::Uuid,
}