feat: initial REST endpoints and websocket
/create /delete /ws
This commit is contained in:
@@ -5,3 +5,5 @@ authors.workspace = true
|
||||
edition.workspace = true
|
||||
|
||||
[dependencies]
|
||||
serde.workspace = true
|
||||
uuid.workspace = true
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user