derv-net/index.js
2025-02-26 01:10:09 -05:00

17 lines
No EOL
351 B
JavaScript

import express from "express";
import { doInit } from "./routes/init.js";
const app = express()
const port = 3000;
app.use(express.static('public'));
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