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

9
api/Cargo.toml Normal file
View file

@ -0,0 +1,9 @@
[package]
name = "api"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
serde = { version = "1.0.163", features = ["derive"] }

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,
}