refactor(system): changes to keep everything more tidy and less drilling
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
import express from "express";
|
||||
import { setupRoutes } from "@/src/routes/routeHandler.route.js";
|
||||
import { setupRoutes } from "./src/routeHandler.route.js";
|
||||
|
||||
const port = Number(process.env.PORT);
|
||||
export const baseUrl = "";
|
||||
const startApp = async () => {
|
||||
const app = express();
|
||||
const baseUrl = "";
|
||||
|
||||
setupRoutes(baseUrl, app);
|
||||
|
||||
app.listen(port, () => {
|
||||
|
||||
Reference in New Issue
Block a user