[www] enable plus for a user

This commit is contained in:
Devin Zuczek
2026-10-02 13:38:13 -04:00
parent 10973d9685
commit 6167925ee0
4 changed files with 87 additions and 2 deletions
+3
View File
@@ -52,6 +52,7 @@ import {
giftRoomTokensHandler,
giftTokensHandler,
giftXpHandler,
grantPlusHandler,
linkedAccountsHandler,
playerHistoryHandler,
requireDeveloper,
@@ -560,6 +561,8 @@ const app = new Hono<App>()
// Its sibling: the same gift to every account whose Discord link holds a role, offline
// included — the supporter cron's audience, with an operator's amount and message.
.post('/api/staff/discord-roles/:roleId/gift-tokens', requireDeveloper, giftRoleTokensHandler)
// Rec Room Plus is worth tokens and a discount, so granting it is developer-only too.
.post('/api/staff/players/:id/grant-plus', requireDeveloper, grantPlusHandler)
.post('/api/staff/players/:id/username-changes', addUsernameChangeHandler)
.post('/api/staff/players/:id/clear-password', clearPasswordHandler)