adding in stuff to make search work but still testing and stuff

This commit is contained in:
talksik
2022-03-18 12:37:39 -04:00
parent 726ab29b64
commit 1ff61bf91d
12 changed files with 225 additions and 64 deletions
+2
View File
@@ -3,6 +3,7 @@ import express, { Application, Request, Response } from "express";
import { NextFunction } from "express";
import { connectToDatabase } from "./services/database.service";
import cors from "cors";
import getSearchRoutes from "./routes/search";
import getUserRoutes from "./routes/user";
const app = express();
@@ -19,6 +20,7 @@ app.get("/", (req: Request, res: Response) => {
});
app.use("/api/users", getUserRoutes());
app.use("/api/search", getSearchRoutes());
app.listen(5000, () => console.log("Example app is listening on port 5000."));