2025-02-25 13:00:10 -05:00
|
|
|
import express from "express";
|
2025-02-25 19:47:28 -05:00
|
|
|
import { doInit } from "./routes/init.js";
|
2025-02-25 13:00:10 -05:00
|
|
|
|
|
|
|
const app = express()
|
2025-02-26 22:14:12 -05:00
|
|
|
const port = process.env.PORT || 3000;
|
2025-02-25 13:00:10 -05:00
|
|
|
|
|
|
|
app.set('view engine', 'ejs');
|
2025-02-25 16:02:31 -05:00
|
|
|
app.enable('view cache');
|
2025-02-25 13:00:10 -05:00
|
|
|
|
|
|
|
app.listen(port, () => {
|
|
|
|
console.log(`Example app listening on port ${port}`)
|
|
|
|
})
|
|
|
|
|
2025-02-25 19:47:28 -05:00
|
|
|
doInit(app);
|
|
|
|
|
2025-02-26 01:10:09 -05:00
|
|
|
// TODO: rate limit stuff and fix long urls
|