Index

joshstock.in / 2d3ddfe

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

Latest Commit

{#}TimeHashSubjectAuthor#(+)(-)GPG?
5404 Jan 2020 15:512d3ddfeMove static gitpager files to new gitpager/static/ folderJosh Stockin138N

Blob @ joshstock.in / gitpager / index.js

application/javascript332 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")))
8let indexFile = path.resolve(__dirname, "index.html")
9app.get("/", function (req, res) {
10 res.sendFile(indexFile);
11});
12
13app.listen(port);
14