10 lines
249 B
JavaScript
10 lines
249 B
JavaScript
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 + "."));
|