You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
370 B
15 lines
370 B
const express = require("express");
|
|
const app = express();
|
|
const cors = require("cors");
|
|
|
|
// MIDDLEWARES
|
|
app.use(express.json());
|
|
app.use(cors());
|
|
|
|
// ROUTES
|
|
app.use("/auth", require("./routes/jwtauth"));
|
|
app.use("/dashboard", require("./routes/dashboard"));
|
|
|
|
const PORT = process.env.PORT || 5000;
|
|
app.listen(PORT, () => console.log(`Server Running On Port ${PORT}`));
|