This commit is contained in:
9
api/index.js
Normal file
9
api/index.js
Normal file
@ -0,0 +1,9 @@
|
||||
import express from "express";
|
||||
import { router } from "express-file-routing";
|
||||
const PORT = process.env.PORT || 2000;
|
||||
|
||||
const app = express();
|
||||
|
||||
app.use("/", await router());
|
||||
|
||||
app.listen(PORT, () => console.log("API listening on port " + PORT + "."));
|
Reference in New Issue
Block a user