templates: Add a template for web applications

This commit is contained in:
traxys 2023-05-17 18:58:52 +02:00
parent 47094c899f
commit e380eff9b5
12 changed files with 328 additions and 0 deletions

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