pass user login data
This commit is contained in:
parent
e2b46becf0
commit
ba3c763a09
3 changed files with 71 additions and 0 deletions
|
@ -9,6 +9,7 @@ import errorHandler from "../middleware/errorHandler";
|
|||
import setup from "./setup";
|
||||
import auth from "./auth";
|
||||
import admin from "./admin/index";
|
||||
import user from "./user";
|
||||
|
||||
export default (app: Express) => {
|
||||
app.set("query parser", "extended");
|
||||
|
@ -25,5 +26,6 @@ export default (app: Express) => {
|
|||
app.use("/auth", auth);
|
||||
app.use(authenticate);
|
||||
app.use("/admin", admin);
|
||||
app.use("/user", user);
|
||||
app.use(errorHandler);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue