Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 53538a3

Browse filesBrowse files
committed
fix serving static files in public
1 parent 2aa25d2 commit 53538a3
Copy full SHA for 53538a3

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed

‎app/index.js

Copy file name to clipboardExpand all lines: app/index.js
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ app.use(require('koa-json')({
1919
pretty: false,
2020
param: 'pretty',
2121
}));
22-
app.use(require('koa-static')(join(__dirname, '..', 'public'), {
22+
app.use(require('koa-static')('public'), {
2323
defer: true,
24-
}));
24+
});
2525

2626
// GET the entire .json file
2727
app.use(function* (next) {

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.