adding route that works with creating user and such
This commit is contained in:
@@ -3,7 +3,7 @@ import express, { Application, Request, Response } from "express";
|
||||
import { NextFunction } from "express";
|
||||
import { connectToDatabase } from "./services/database.service";
|
||||
import cors from "cors";
|
||||
import getRoutes from "./routes";
|
||||
import getUserRoutes from "./routes/user";
|
||||
|
||||
const app = express();
|
||||
|
||||
@@ -18,7 +18,7 @@ app.get("/", (req: Request, res: Response) => {
|
||||
res.send("hello world.");
|
||||
});
|
||||
|
||||
app.use("/api", getRoutes());
|
||||
app.use("/api/users", getUserRoutes());
|
||||
|
||||
app.listen(5000, () => console.log("Example app is listening on port 5000."));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user