Feat: add login

This commit is contained in:
2025-12-07 12:15:48 +08:00
parent fb1c47b321
commit 2eb8a18c40
11 changed files with 265 additions and 7 deletions

View File

@@ -223,6 +223,29 @@
}
}
}
},
"/auth/login": {
"post": {
"parameters": [
{
"description": "payload",
"name": "payload",
"in": "body",
"required": true,
"schema": {
"$ref": "#/definitions/auth.postLoginInput"
}
}
],
"responses": {
"302": {
"description": "redirect to root page",
"schema": {
"type": "string"
}
}
}
}
}
},
"definitions": {
@@ -272,6 +295,14 @@
"type": "string"
}
}
},
"auth.postLoginInput": {
"type": "object",
"properties": {
"token": {
"type": "string"
}
}
}
}
}