Index
joshstock.in
/
9307ef1
Source for serving and static templating/compiling of https://joshstock.in.
Download
|
Refs
|
Commit Log
|
Files
|
README
|
LICENSE
Latest Commit
{#}
Time
Hash
Subject
Author
#
(+)
(-)
GPG?
55
04 Jan 2020 16:21
603fa7d
Remove / route function from express.js for static serving
Josh Stockin
1
0
4
N
Blob @
joshstock.in
/
gitpager
/
index.js
application/javascript
213 bytes
download raw
1
const
fs
=
require
(
"fs"
);
2
const
path
=
require
(
"path"
);
3
const
express
=
require
(
"express"
);
4
const
app
=
express
();
5
const
port
=
8080
;
6
7
app
.
use
(
express
.
static
(
path
.
resolve
(
__dirname
,
"static"
)))
8
9
app
.
listen
(
port
);
10