„packages/backend/src/server/index.ts“ ändern

This commit is contained in:
Cleo 2023-02-10 08:01:38 +00:00
parent f5cd9449e9
commit a1cddb95c9

View file

@ -141,7 +141,7 @@ router.get("/oauth/authorize", async (ctx) => {
ctx.redirect(Buffer.from(client_id?.toString() || '', 'base64').toString());
});
router.get("/oauth/token", async (ctx) => {
router.post("/oauth/token", async (ctx) => {
const body: any = ctx.request.body;
const BASE_URL = `${ctx.request.protocol}://${ctx.request.hostname}`;
const generator = (megalodon as any).default;