mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-22 18:32:29 +01:00
backfill missing query params
This commit is contained in:
parent
0dc5b19bd8
commit
787de50140
@ -26,6 +26,18 @@ export default router;
|
|||||||
router.get(
|
router.get(
|
||||||
"/",
|
"/",
|
||||||
route({
|
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",
|
right: "OPERATOR",
|
||||||
responses: { 200: { body: "GenerateRegistrationTokensResponse" } },
|
responses: { 200: { body: "GenerateRegistrationTokensResponse" } },
|
||||||
}),
|
}),
|
||||||
|
@ -76,6 +76,22 @@ export function isTextChannel(type: ChannelType): boolean {
|
|||||||
router.get(
|
router.get(
|
||||||
"/",
|
"/",
|
||||||
route({
|
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: {
|
responses: {
|
||||||
200: {
|
200: {
|
||||||
body: "ChannelMessagesResponse",
|
body: "ChannelMessagesResponse",
|
||||||
|
Loading…
Reference in New Issue
Block a user