add options for /register
This commit is contained in:
parent
9300b05335
commit
3760b9c4ad
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user