add options for /register

This commit is contained in:
Hanusiak Piotr 2022-03-08 15:52:48 +01:00
parent 9300b05335
commit 3760b9c4ad

View File

@ -255,6 +255,9 @@ export class AuthenticateController extends BaseHttpController {
* example: ??? * example: ???
*/ */
private register() { private register() {
this.app.options("/register", {}, (req, res) => {
res.status(200).send("");
});
this.app.post("/register", (req, res) => { this.app.post("/register", (req, res) => {
(async () => { (async () => {
const param = await req.json(); const param = await req.json();