Add reset-password endpoint

This commit is contained in:
2026-01-23 21:00:50 -07:00
parent c1216abe07
commit 3dd5d34095
2 changed files with 139 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ import { handler as launcherLoaderUpdateDataHandler } from './routes/launcher/lo
import { handler as accountForgotUsernamePostHandler } from './routes/account/forgot-username/post'
import { handler as accountForgotPasswordPostHandler } from './routes/account/forgot-password/post'
import { handler as accountResetPasswordPostHandler } from './routes/account/reset-password/post'
import { handler as berryDashLatestVersionGetHandler } from './routes/berrydash/latest-version/get'
@@ -165,6 +166,17 @@ app.post('/account/forgot-password', accountForgotPasswordPostHandler, {
verifyCode: t.String()
})
})
app.post('/account/reset-password', accountResetPasswordPostHandler, {
detail: {
description: 'The endpoint for resetting the password for an account.',
tags: ['Accounts']
},
body: t.Object({
token: t.String(),
code: t.String(),
password: t.String()
})
})
app.get('/berrydash/latest-version', berryDashLatestVersionGetHandler, {
detail: {
description: 'The endpoint for getting the latest berry dash version.',