Add tokens routes

This commit is contained in:
2025-03-19 18:57:38 +01:00
parent 3081757536
commit 544513d118
16 changed files with 376 additions and 18 deletions

View File

@ -1,3 +1,8 @@
//! # Project constants
/// Length of generated tokens
pub const TOKENS_LEN: usize = 50;
/// Header used to authenticate API requests made using a token
pub const API_TOKEN_HEADER: &str = "X-Auth-Token";