upd: register contentParser

This commit is contained in:
Mar0xy 2023-11-16 20:21:33 +01:00
parent 67dceab22e
commit 5af274ef0a
No known key found for this signature in database
GPG key ID: 56569BBE47D2C828

View file

@ -78,6 +78,8 @@ export class OAuth2ProviderService {
payload.on('error', done);
});
fastify.register(multer.contentParser);
fastify.get('/oauth/authorize', async (request, reply) => {
const query: any = request.query;
let param = "mastodon=true";