feedback5 R1: docs and comments follow the split — DESIGN §2 layout lists server/http/, the README table names the entry and http/, path comments in shared/media.js, public/js/media.js, buildGuard.js, net.js and three tests point at the new modules; .git-blame-ignore-revs lists the pure-move commit
This commit is contained in:
1 parent
1b38e30819
commit
5f0830cdc5
10 files changed
+29
-11
No files matched your search
+2
-2
@@ -6,14 +6,14 @@
|
||||
//
|
||||
// /assets/audio/bgm/act1.mp3 → /media/bgm/act1
|
||||
//
|
||||
// — and `server/index.js` resolves it back to the real file under public/assets/audio, still answering with
|
||||
// — and `server/http/media.js` resolves it back to the real file under public/assets/audio, still answering with
|
||||
// `Content-Type: audio/mpeg`, Range support and the ETag of the file it resolved.
|
||||
//
|
||||
// Both sides import this module: the browser to decide which URLs to rewrite (`public/js/media.js`), the server to
|
||||
// decide which extensions a `/media/…` request may resolve to. A second copy of the list on one side would let them
|
||||
// drift apart silently — the client would rewrite to a path the server no longer accepts.
|
||||
|
||||
/** Prefix of the extension-less audio route served by `server/index.js`. */
|
||||
/** Prefix of the extension-less audio route served by `server/http/media.js`. */
|
||||
export const MEDIA_PREFIX = '/media/';
|
||||
|
||||
/** Extensions a `/media/…` request may resolve to, in the order the server tries them. */
|
||||
|
||||
Reference in new issue
Block a user