refactor: reorganize REST API into modular endpoint files

Co-authored-by: aider (openai/andrew/openrouter/qwen/qwen3-coder) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-08-12 14:25:50 -03:00
parent 04a8505e86
commit fbdf2d84b7
4 changed files with 725 additions and 0 deletions

View File

@@ -58,6 +58,14 @@ pub struct TagsQuery {
pub tags: Option<String>,
}
#[derive(Debug, Deserialize)]
pub struct ListItemsQuery {
pub tags: Option<String>,
pub order: Option<String>,
pub start: Option<u32>,
pub count: Option<u32>,
}
pub fn check_auth(headers: &HeaderMap, password: &Option<String>) -> bool {
if let Some(expected_password) = password {
if let Some(auth_header) = headers.get("authorization") {