Make icon marketplace work with either verifyCode or token

This commit is contained in:
2026-01-31 01:28:37 -07:00
parent 4727816fb2
commit 5cd6442cca
2 changed files with 50 additions and 33 deletions

View File

@@ -1083,11 +1083,12 @@ app.post(
{
detail: {
description:
'The endpoint for uploading an icon to the icon marketplace.',
'The endpoint for uploading an icon to the icon marketplace.\n\n`verifyCode` or `token` must be provided.',
tags: ['Berry Dash', 'Icon Marketplace']
},
body: t.Object({
verifyCode: t.String(),
verifyCode: t.Optional(t.String()),
token: t.Optional(t.String()),
price: t.String(),
name: t.String(),
fileContent: t.String()