good progress with server and client back and forth
- getting there slowly with console logs and understanding the steps along the way
This commit is contained in:
@@ -6,6 +6,7 @@ import { UserService } from "./services/user.service";
|
||||
import { UserStatus } from "@nirvana/core/models";
|
||||
import cors from "cors";
|
||||
import getConversationRoutes from "./routes/conversation";
|
||||
import getRtcRoutes from "./routes/rtc";
|
||||
import getSearchRoutes from "./routes/search";
|
||||
import getUserRoutes from "./routes/user";
|
||||
|
||||
@@ -23,12 +24,16 @@ app.get("/", (req: Request, res: Response) => {
|
||||
res.send("hello world.");
|
||||
});
|
||||
|
||||
app.use("/api/rtc", getRtcRoutes());
|
||||
|
||||
app.use("/api/user", getUserRoutes());
|
||||
app.use("/api/search", getSearchRoutes());
|
||||
app.use("/api/conversations", getConversationRoutes());
|
||||
|
||||
const PORT = 5000;
|
||||
var server = app.listen(PORT, () => console.log("express running"));
|
||||
var server = app.listen(PORT, () =>
|
||||
console.log(`express running on port ${PORT}`)
|
||||
);
|
||||
|
||||
// socket IO stuff
|
||||
|
||||
|
||||
Reference in New Issue
Block a user