This commit is contained in:
2026-01-21 16:19:45 -07:00
parent 291f2f64d2
commit a1a861b2cf

View File

@@ -67,7 +67,7 @@ app.get('/launcher/versions', context => launcherVersionsHandler(context), {
'The endpoint for getting the launcher manifest.\n\nNote: if going to use the params, both must be provided at the same time.', 'The endpoint for getting the launcher manifest.\n\nNote: if going to use the params, both must be provided at the same time.',
tags: ['Launcher'] tags: ['Launcher']
}, },
params: t.Object({ query: t.Object({
platform: t.Optional(t.String()), platform: t.Optional(t.String()),
arch: t.Optional(t.String()) arch: t.Optional(t.String())
}) })
@@ -94,7 +94,7 @@ app.get(
'The endpoint for getting Launcher Update data for when a new Update is released. It will be send & read by the updater.\n\nNote: if going to use the params, both must be provided at the same time.', 'The endpoint for getting Launcher Update data for when a new Update is released. It will be send & read by the updater.\n\nNote: if going to use the params, both must be provided at the same time.',
tags: ['Launcher'] tags: ['Launcher']
}, },
params: t.Object({ query: t.Object({
platform: t.Optional(t.String()), platform: t.Optional(t.String()),
arch: t.Optional(t.String()) arch: t.Optional(t.String())
}) })
@@ -119,7 +119,7 @@ app.get(
'The endpoint for getting the berry leaderboards.' + intNotStr('berry'), 'The endpoint for getting the berry leaderboards.' + intNotStr('berry'),
tags: ['Berry Dash', 'Leaderboards'] tags: ['Berry Dash', 'Leaderboards']
}, },
params: t.Object({ query: t.Object({
berry: t.String() berry: t.String()
}) })
} }
@@ -160,7 +160,7 @@ app.get('/berrydash/profile', context => berrydashProfileGetHandler(context), {
"The endpoint for getting a user's profile." + intNotStr('userId'), "The endpoint for getting a user's profile." + intNotStr('userId'),
tags: ['Berry Dash', 'Profiles'] tags: ['Berry Dash', 'Profiles']
}, },
params: t.Object({ query: t.Object({
userId: t.String() userId: t.String()
}) })
}) })
@@ -175,7 +175,7 @@ app.delete(
headers: t.Object({ headers: t.Object({
authorization: t.String() authorization: t.String()
}), }),
params: t.Object({ query: t.Object({
id: t.String() id: t.String()
}) })
} }
@@ -189,7 +189,7 @@ app.get(
'This endpoint is for getting posts from a user.' + intNotStr('userId'), 'This endpoint is for getting posts from a user.' + intNotStr('userId'),
tags: ['Berry Dash', 'Profiles'] tags: ['Berry Dash', 'Profiles']
}, },
params: t.Object({ query: t.Object({
userId: t.String() userId: t.String()
}) })
} }
@@ -218,7 +218,7 @@ app.put(
boolNotStr('likedQuery'), boolNotStr('likedQuery'),
tags: ['Berry Dash', 'Profiles'] tags: ['Berry Dash', 'Profiles']
}, },
params: t.Object({ query: t.Object({
id: t.String(), id: t.String(),
likedQuery: t.String() likedQuery: t.String()
}) })