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