feat: add api key authentication

This commit is contained in:
QiuSW
2026-07-02 17:40:26 +08:00
parent e34b4c65f8
commit 47e6aed7a8
11 changed files with 224 additions and 17 deletions
+7
View File
@@ -0,0 +1,7 @@
def api_error(code: str, message: str) -> dict:
return {
"error": {
"code": code,
"message": message,
}
}