summaryrefslogtreecommitdiff
path: root/main.js
blob: 2765c83c671f196d80659331db7e0476863a70d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import express from "express";

import playRouter from "./routes/play.js";

const app = express();

app.set("views", "./views");
app.set("view engine", "ejs");

app.use(express.static("static"));
app.use("/play", playRouter);

const port = process.env.PORT || 3000;
app.listen(port, () => console.log(`listening on port ${port}`));