me forgorr

This commit is contained in:
cutestnekoaqua 2023-02-10 23:17:29 +01:00
parent 23aa51102b
commit 2ff3e68d94

View file

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