mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 10:22:39 +01:00
oapi: readstates
This commit is contained in:
parent
3fa2a95429
commit
a1d8869271
@ -7977,8 +7977,18 @@
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"default": {
|
||||
"204": {
|
||||
"description": "No description available"
|
||||
},
|
||||
"400": {
|
||||
"description": "",
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/APIErrorResponse"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"tags": [
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user