A little late
This commit is contained in:
1 file changed
-122
-122
@@ -1219,109 +1219,6 @@ app.get('/berrydash/latest-version', berryDashLatestVersionGetHandler, {
|
||||
)
|
||||
})
|
||||
})
|
||||
app.get(
|
||||
'/berrydash/leaderboards/score',
|
||||
context => berrydashLeaderboardGetHandler(context, 0),
|
||||
{
|
||||
detail: {
|
||||
deprecated: true,
|
||||
description:
|
||||
'This endpoint was renamed to `/berrydash/leaderboard/score` and will be removed on March 19th 2026.',
|
||||
tags: ['Berry Dash', 'Leaderboards']
|
||||
},
|
||||
headers: t.Object({
|
||||
'x-forwarded-for': t.Optional(
|
||||
t.String({
|
||||
description:
|
||||
'Ignore this header. It cannot be set or overridden and is required for endpoints to work properly'
|
||||
})
|
||||
)
|
||||
})
|
||||
}
|
||||
)
|
||||
app.get(
|
||||
'/berrydash/leaderboards/berry',
|
||||
context => berrydashLeaderboardGetHandler(context, 1),
|
||||
{
|
||||
detail: {
|
||||
deprecated: true,
|
||||
description:
|
||||
'This endpoint was renamed to `/berrydash/leaderboard/berry` and will be removed on March 19th 2026.',
|
||||
tags: ['Berry Dash', 'Leaderboards']
|
||||
},
|
||||
query: t.Object({
|
||||
berry: t.String()
|
||||
}),
|
||||
headers: t.Object({
|
||||
'x-forwarded-for': t.Optional(
|
||||
t.String({
|
||||
description:
|
||||
'Ignore this header. It cannot be set or overridden and is required for endpoints to work properly'
|
||||
})
|
||||
)
|
||||
})
|
||||
}
|
||||
)
|
||||
app.get(
|
||||
'/berrydash/leaderboards/coin',
|
||||
context => berrydashLeaderboardGetHandler(context, 2),
|
||||
{
|
||||
detail: {
|
||||
deprecated: true,
|
||||
description:
|
||||
'This endpoint was renamed to `/berrydash/leaderboard/coin` and will be removed on March 19th 2026.',
|
||||
tags: ['Berry Dash', 'Leaderboards']
|
||||
},
|
||||
headers: t.Object({
|
||||
'x-forwarded-for': t.Optional(
|
||||
t.String({
|
||||
description:
|
||||
'Ignore this header. It cannot be set or overridden and is required for endpoints to work properly'
|
||||
})
|
||||
)
|
||||
})
|
||||
}
|
||||
)
|
||||
app.get(
|
||||
'/berrydash/leaderboards/legacy',
|
||||
context => berrydashLeaderboardGetHandler(context, 3),
|
||||
{
|
||||
detail: {
|
||||
deprecated: true,
|
||||
description:
|
||||
'This endpoint was renamed to `/berrydash/leaderboard/legacy` and will be removed on March 19th 2026.',
|
||||
tags: ['Berry Dash', 'Leaderboards']
|
||||
},
|
||||
headers: t.Object({
|
||||
'x-forwarded-for': t.Optional(
|
||||
t.String({
|
||||
description:
|
||||
'Ignore this header. It cannot be set or overridden and is required for endpoints to work properly'
|
||||
})
|
||||
)
|
||||
})
|
||||
}
|
||||
)
|
||||
app.get(
|
||||
'/berrydash/leaderboards/total',
|
||||
context => berrydashLeaderboardGetHandler(context, 4),
|
||||
{
|
||||
detail: {
|
||||
deprecated: true,
|
||||
description:
|
||||
'This endpoint was renamed to `/berrydash/leaderboard/total` and will be removed on March 19th 2026.',
|
||||
tags: ['Berry Dash', 'Leaderboards']
|
||||
},
|
||||
headers: t.Object({
|
||||
'x-forwarded-for': t.Optional(
|
||||
t.String({
|
||||
description:
|
||||
'Ignore this header. It cannot be set or overridden and is required for endpoints to work properly'
|
||||
})
|
||||
)
|
||||
})
|
||||
}
|
||||
)
|
||||
app.get(
|
||||
'/berrydash/leaderboard/score',
|
||||
context => berrydashLeaderboardGetHandler(context, 0),
|
||||
@@ -1416,25 +1313,6 @@ app.get(
|
||||
})
|
||||
}
|
||||
)
|
||||
app.get('/berrydash/profile', context => berrydashProfileGetHandler(context), {
|
||||
detail: {
|
||||
description:
|
||||
"The endpoint for getting a user's profile.\n\n**Do not use this endpoint. It is the same as `/api/berrydash/account?id=(id)&exact=true` and will be removed on March 19th 2026.**" +
|
||||
intNotStr('userId'),
|
||||
tags: ['Berry Dash', 'Profiles'],
|
||||
deprecated: true
|
||||
},
|
||||
query: t.Object({
|
||||
userId: t.String()
|
||||
}),
|
||||
headers: t.Object({
|
||||
'x-forwarded-for': t.Optional(
|
||||
t.String({
|
||||
hide: true
|
||||
})
|
||||
)
|
||||
})
|
||||
})
|
||||
app.delete(
|
||||
'/berrydash/profile/posts',
|
||||
context => berrydashProfilePostsDeleteHandler(context),
|
||||
|
||||
Reference in new issue
Block a user