-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathroutes.js
22 lines (19 loc) · 928 Bytes
/
routes.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const express = require("express");
const {
renderPage,
renderPost
} = require("./lib/resolvers");
const app = express();
app.set("view engine", "ejs");
app.use("/static", express.static("static"));
// PAGES
app.get("/", renderPage("Home", "index"));
app.get("/twitch", renderPage("twitch", "twitch"));
app.get("/livestream-timer", renderPage("livestream-timer", "livestream-timer"));
// app.get("/events", renderPost("./markdown/events.md", "markdown_layout"));
app.get("/schedule", renderPost("./markdown/schedule.md", "markdown_layout_wide"));
app.get("/legal/talent_liability_terms", renderPost("./markdown/legal/talent_liability_terms.md", "markdown_layout"));
app.get("/challenges", renderPost("./markdown/challenges.md", "markdown_layout"));
app.get("/apply", renderPost("./markdown/apply.md", "markdown_layout"));
app.get("/volunteer", renderPost("./markdown/volunteer.md", "markdown_layout"));
exports.app = app;