setup and invite
This commit is contained in:
parent
03e0f90279
commit
7df7cf2697
23 changed files with 515 additions and 43 deletions
|
@ -1,10 +1,12 @@
|
|||
import express from "express";
|
||||
import type { Express } from "express";
|
||||
import cors from "cors";
|
||||
|
||||
import type { Express } from "express";
|
||||
import errorHandler from "../middleware/errorHandler";
|
||||
import allowSetup from "../middleware/allowSetup";
|
||||
import authenticate from "../middleware/authenticate";
|
||||
import errorHandler from "../middleware/errorHandler";
|
||||
|
||||
import setup from "./setup";
|
||||
import auth from "./auth";
|
||||
|
||||
export default (app: Express) => {
|
||||
|
@ -18,6 +20,7 @@ export default (app: Express) => {
|
|||
app.use(cors());
|
||||
app.options("*", cors());
|
||||
|
||||
app.use("/setup", allowSetup, setup);
|
||||
app.use("/auth", auth);
|
||||
app.use(authenticate);
|
||||
app.use("/secured", (req, res) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue