diff options
author | Puyodead1 <puyodead@proton.me> | 2023-03-24 18:14:47 -0400 |
---|---|---|
committer | Puyodead1 <puyodead@proton.me> | 2023-04-13 15:20:10 -0400 |
commit | 6b3a3b750f3e29b491c51f8199efd64c05176a65 (patch) | |
tree | 2f15670152c3fb99630c648a86dd63e0a0b86b74 /src/api/routes/channels/#channel_id/messages | |
parent | AAA (diff) | |
download | server-6b3a3b750f3e29b491c51f8199efd64c05176a65.tar.xz |
fixing lots of openapi crap
Diffstat (limited to 'src/api/routes/channels/#channel_id/messages')
4 files changed, 5 insertions, 5 deletions
diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts b/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts index f11fdcb2..a6dcae6b 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/ack.ts @@ -34,7 +34,7 @@ const router = Router(); router.post( "/", route({ - body: "MessageAcknowledgeSchema", + requestBody: "MessageAcknowledgeSchema", responses: { 200: {}, 403: {}, diff --git a/src/api/routes/channels/#channel_id/messages/#message_id/index.ts b/src/api/routes/channels/#channel_id/messages/#message_id/index.ts index 77bc1e0e..6bc03f53 100644 --- a/src/api/routes/channels/#channel_id/messages/#message_id/index.ts +++ b/src/api/routes/channels/#channel_id/messages/#message_id/index.ts @@ -52,7 +52,7 @@ const messageUpload = multer({ router.patch( "/", route({ - body: "MessageEditSchema", + requestBody: "MessageEditSchema", permission: "SEND_MESSAGES", right: "SEND_MESSAGES", responses: { @@ -152,7 +152,7 @@ router.put( next(); }, route({ - body: "MessageCreateSchema", + requestBody: "MessageCreateSchema", permission: "SEND_MESSAGES", right: "SEND_BACKDATED_EVENTS", responses: { diff --git a/src/api/routes/channels/#channel_id/messages/bulk-delete.ts b/src/api/routes/channels/#channel_id/messages/bulk-delete.ts index db1617e2..9b607d59 100644 --- a/src/api/routes/channels/#channel_id/messages/bulk-delete.ts +++ b/src/api/routes/channels/#channel_id/messages/bulk-delete.ts @@ -39,7 +39,7 @@ export default router; router.post( "/", route({ - body: "BulkDeleteSchema", + requestBody: "BulkDeleteSchema", responses: { 204: {}, 400: { diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts index 8e3c43d7..ddc42d28 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts @@ -220,7 +220,7 @@ router.post( next(); }, route({ - body: "MessageCreateSchema", + requestBody: "MessageCreateSchema", permission: "SEND_MESSAGES", right: "SEND_MESSAGES", responses: { |