better code: avoid confusion with frontend files
Massimo Melina committed
Dec 21, 2021 at 14:12 UTC
ca2c18bbb68905739a9cffacfeeed2f09ed589dd
3 files changed
+2
-1
src/index.ts
+1
-1
@@ -2,7 +2,7 @@ import Koa from 'koa'
2
import mount from 'koa-mount'
3
import bodyParser from 'koa-bodyparser'
4
import { apiMw, frontEndApis } from './apis'
5
-import { serveFrontend } from './frontend'
5
+import { serveFrontend } from './serveFrontend'
6
import { API_URI, argv, DEV, FRONTEND_URI } from './const'
7
import { serveFile } from './serveFile'
8
import { vfs } from './vfs'
src/serveFrontend.ts
renamed
todo.md
+1
@@ -2,6 +2,7 @@
2
- search: try to use server-sent events for the reply
3
https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events
4
- node.link
5
+- frontend cache should update on file change
6
- vfs: serve an html for a folder?
7
- "default" property for vfsNode?
8
- interruption of long requests if client aborted (searching/listing)