Index

joshstock.in / bf4bead

Source for serving and static templating/compiling of https://joshstock.in.

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
5504 Jan 2020 16:21603fa7dRemove / route function from express.js for static servingJosh Stockin104N

Blob @ joshstock.in / gitpager / index.js

application/javascript213 bytesdownload raw
1const fs = require("fs");
2const path = require("path");
3const express = require("express");
4const app = express();
5const port = 8080;
6
7app.use(express.static(path.resolve(__dirname, "static")))
8
9app.listen(port);
10