mirror of
https://github.com/hyprwm/hyprland-website.git
synced 2024-11-17 02:45:59 +01:00
21 lines
No EOL
405 B
JavaScript
21 lines
No EOL
405 B
JavaScript
const express = require("express");
|
|
const path = require("path");
|
|
const app = express();
|
|
|
|
app.use(express.static(path.join(__dirname, "public")));
|
|
|
|
app.set("view engine", "ejs");
|
|
app.set("views", path.join(__dirname, "views"));
|
|
|
|
app.get("/", (req,res) => {
|
|
res.render("home")
|
|
})
|
|
|
|
|
|
app.get("*", (req,res) => {
|
|
res.render("404")
|
|
})
|
|
|
|
app.listen(4000, () => {
|
|
console.log("Listening to PORT: 4000");
|
|
}); |