1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-22 18:32:29 +01:00

oapi: readstates

This commit is contained in:
Puyodead1 2023-03-25 12:45:10 -04:00
parent 3fa2a95429
commit a1d8869271
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC
2 changed files with 20 additions and 2 deletions

View File

@ -7977,8 +7977,18 @@
}
},
"responses": {
"default": {
"204": {
"description": "No description available"
},
"400": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/APIErrorResponse"
}
}
}
}
},
"tags": [

View File

@ -23,7 +23,15 @@ const router = Router();
router.post(
"/",
route({ requestBody: "AckBulkSchema" }),
route({
requestBody: "AckBulkSchema",
responses: {
204: {},
400: {
body: "APIErrorResponse",
},
},
}),
async (req: Request, res: Response) => {
const body = req.body as AckBulkSchema;