Init with webapp template

This commit is contained in:
Quentin Boyer 2023-05-19 11:23:44 +02:00
commit 37331cd24d
13 changed files with 2709 additions and 0 deletions

12
api/src/lib.rs Normal file
View file

@ -0,0 +1,12 @@
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize)]
pub struct LoginRequest {
pub username: String,
pub password: String,
}
#[derive(Serialize, Deserialize)]
pub struct LoginResponse {
pub token: String,
}