me forgorr

This commit is contained in:
cutestnekoaqua 2023-02-10 23:17:29 +01:00
parent 8b0e3161a3
commit 8b08b2e572
No known key found for this signature in database
GPG Key ID: 6BF0964A5069C1E0

View File

@ -43,10 +43,7 @@ const writeScope = [
export function apiAuthMastodon(router: Router): void { export function apiAuthMastodon(router: Router): void {
router.post('/v1/apps', koaBody({ router.post('/v1/apps', async (ctx) => {
json: false,
multipart: true
}), async (ctx) => {
const BASE_URL = `${ctx.request.protocol}://${ctx.request.hostname}`; const BASE_URL = `${ctx.request.protocol}://${ctx.request.hostname}`;
const accessTokens = ctx.request.headers.authorization; const accessTokens = ctx.request.headers.authorization;
const client = getClient(BASE_URL, accessTokens); const client = getClient(BASE_URL, accessTokens);