summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@proton.me>2023-03-24 19:04:51 -0400
committerPuyodead1 <puyodead@proton.me>2023-04-13 15:24:37 -0400
commit787de501401cce38758a1fd60ac02bbc1fee40c1 (patch)
tree122a5cf2754d07d4885ea5b6c0355140513344f4 /src
parentgifs and query params (diff)
downloadserver-787de501401cce38758a1fd60ac02bbc1fee40c1.tar.xz
backfill missing query params
Diffstat (limited to 'src')
-rw-r--r--src/api/routes/auth/generate-registration-tokens.ts12
-rw-r--r--src/api/routes/channels/#channel_id/messages/index.ts16
2 files changed, 28 insertions, 0 deletions
diff --git a/src/api/routes/auth/generate-registration-tokens.ts b/src/api/routes/auth/generate-registration-tokens.ts

index 48fe6421..80fdaed1 100644 --- a/src/api/routes/auth/generate-registration-tokens.ts +++ b/src/api/routes/auth/generate-registration-tokens.ts
@@ -26,6 +26,18 @@ export default router; router.get( "/", route({ + query: { + count: { + type: "number", + description: + "The number of registration tokens to generate. Defaults to 1.", + }, + length: { + type: "number", + description: + "The length of each registration token. Defaults to 255.", + }, + }, right: "OPERATOR", responses: { 200: { body: "GenerateRegistrationTokensResponse" } }, }), diff --git a/src/api/routes/channels/#channel_id/messages/index.ts b/src/api/routes/channels/#channel_id/messages/index.ts
index ddc42d28..3d6cc596 100644 --- a/src/api/routes/channels/#channel_id/messages/index.ts +++ b/src/api/routes/channels/#channel_id/messages/index.ts
@@ -76,6 +76,22 @@ export function isTextChannel(type: ChannelType): boolean { router.get( "/", route({ + query: { + around: { + type: "string", + }, + before: { + type: "string", + }, + after: { + type: "string", + }, + limit: { + type: "number", + description: + "max number of messages to return (1-100). defaults to 50", + }, + }, responses: { 200: { body: "ChannelMessagesResponse",