derv-net/index.js
2025-02-26 22:14:12 -05:00

16 lines
No EOL
336 B
JavaScript

import express from "express";
import { doInit } from "./routes/init.js";
const app = express()
const port = process.env.PORT || 3000;
app.set('view engine', 'ejs');
app.enable('view cache');
app.listen(port, () => {
console.log(`Example app listening on port ${port}`)
})
doInit(app);
// TODO: rate limit stuff and fix long urls