mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-08 14:41:28 -07:00
working room saves
This commit is contained in:
@@ -19,9 +19,13 @@ import type { App } from './context'
|
||||
* stored under. `Unknown` (0) is intentionally absent: like the reference
|
||||
* server's `makeUploadName`, an unrecognized type has no destination and is
|
||||
* rejected rather than stored.
|
||||
*
|
||||
* RoomSave (1) lands under `room/` (not `roomsave/`) so the `cdn` worker's
|
||||
* `GET /room/:dataBlob` route serves the blob back — both bind the same
|
||||
* `recflare-cdn` bucket, so the key prefixes must match.
|
||||
*/
|
||||
const UPLOAD_SUBFOLDER: Record<number, string> = {
|
||||
1: 'roomsave',
|
||||
1: 'room',
|
||||
2: 'holotar',
|
||||
3: 'image',
|
||||
4: 'video',
|
||||
|
||||
@@ -79,7 +79,8 @@ it('POST /upload stores a RoomMetadata (FileType 6) file under roommetadata/ and
|
||||
it('POST /upload folders each FileType under its own subfolder', async () => {
|
||||
const headers = await bearer()
|
||||
const cases: Array<[string, string]> = [
|
||||
['1', 'roomsave'],
|
||||
// RoomSave lands under `room/` so the cdn worker's /room/:dataBlob serves it.
|
||||
['1', 'room'],
|
||||
['3', 'image'],
|
||||
['5', 'invention'],
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user