mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 18:32:29 +01:00
oapi: readstates
This commit is contained in:
parent
3fa2a95429
commit
a1d8869271
@ -7977,8 +7977,18 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"responses": {
|
"responses": {
|
||||||
"default": {
|
"204": {
|
||||||
"description": "No description available"
|
"description": "No description available"
|
||||||
|
},
|
||||||
|
"400": {
|
||||||
|
"description": "",
|
||||||
|
"content": {
|
||||||
|
"application/json": {
|
||||||
|
"schema": {
|
||||||
|
"$ref": "#/components/schemas/APIErrorResponse"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"tags": [
|
"tags": [
|
||||||
|
@ -23,7 +23,15 @@ const router = Router();
|
|||||||
|
|
||||||
router.post(
|
router.post(
|
||||||
"/",
|
"/",
|
||||||
route({ requestBody: "AckBulkSchema" }),
|
route({
|
||||||
|
requestBody: "AckBulkSchema",
|
||||||
|
responses: {
|
||||||
|
204: {},
|
||||||
|
400: {
|
||||||
|
body: "APIErrorResponse",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}),
|
||||||
async (req: Request, res: Response) => {
|
async (req: Request, res: Response) => {
|
||||||
const body = req.body as AckBulkSchema;
|
const body = req.body as AckBulkSchema;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user