mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-04 04:51:16 +08:00
renamed auth to user
moved one require up
This commit is contained in:
parent
c84f444e15
commit
8cb954dd88
1 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
const express = require("express");
|
||||
const { config } = require("dotenv");
|
||||
const path = require("path");
|
||||
config({ path: path.join(__dirname, ".env") });
|
||||
|
||||
const path = require("path");
|
||||
const cors = require("cors");
|
||||
const admin = require("firebase-admin");
|
||||
|
||||
|
@ -15,8 +15,8 @@ app.use(express.urlencoded({ extended: true }));
|
|||
app.use(express.json());
|
||||
app.use(cors());
|
||||
|
||||
const authRouter = require("./api/routes/auth");
|
||||
app.use("/auth", authRouter);
|
||||
const userRouter = require("./api/routes/user");
|
||||
app.use("/user", userRouter);
|
||||
|
||||
app.use(function (e, req, res, next) {
|
||||
console.log("Error", e);
|
||||
|
|
Loading…
Reference in a new issue