completed user admin page
This commit is contained in:
@@ -1,5 +1,17 @@
|
||||
import "dotenv/config";
|
||||
import "modules/chron";
|
||||
import express from "express";
|
||||
import cors from "cors";
|
||||
import router from "routes/router";
|
||||
|
||||
// Add API eventually
|
||||
console.log("VAR hub Server started");
|
||||
const app = express();
|
||||
|
||||
app.use(express.json());
|
||||
app.use(cors());
|
||||
|
||||
app.use(router);
|
||||
|
||||
const port = process.env.API_PORT || 3003;
|
||||
app.listen(port, () => {
|
||||
console.log(`Server is running on port ${port}`);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user