adding all logic for sending request and should work?

This commit is contained in:
talksik
2022-03-19 22:49:43 -04:00
parent def2cd2085
commit 0faacbab73
7 changed files with 102 additions and 13 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 getContactsRoutes from "./routes/contacts";
import getConversationRoutes from "./routes/conversation";
import getSearchRoutes from "./routes/search";
import getUserRoutes from "./routes/user";
@@ -23,6 +24,7 @@ app.get("/", (req: Request, res: Response) => {
app.use("/api/users", getUserRoutes());
app.use("/api/search", getSearchRoutes());
app.use("/api/conversations", getConversationRoutes());
app.use("/api/contacts", getContactsRoutes());
app.listen(5000, () => console.log("Example app is listening on port 5000."));