From 3760b9c4ad8c5afe241af99815b967ad15448471 Mon Sep 17 00:00:00 2001 From: Hanusiak Piotr Date: Tue, 8 Mar 2022 15:52:48 +0100 Subject: [PATCH] add options for /register --- pusher/src/Controller/AuthenticateController.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pusher/src/Controller/AuthenticateController.ts b/pusher/src/Controller/AuthenticateController.ts index 110d2f6c..964b4027 100644 --- a/pusher/src/Controller/AuthenticateController.ts +++ b/pusher/src/Controller/AuthenticateController.ts @@ -255,6 +255,9 @@ export class AuthenticateController extends BaseHttpController { * example: ??? */ private register() { + this.app.options("/register", {}, (req, res) => { + res.status(200).send(""); + }); this.app.post("/register", (req, res) => { (async () => { const param = await req.json();