feat(wip): 支持自定义 share token

This commit is contained in:
xream
2024-10-31 22:31:19 +08:00
parent d12ccad382
commit d8f9466b84
8 changed files with 200 additions and 209 deletions

View File

@@ -13,6 +13,8 @@ import { produceArtifact } from '@/restful/sync';
export default function register($app) {
if (!$.read(FILES_KEY)) $.write([], FILES_KEY);
$app.get('/share/file/:name', getFile);
$app.route('/api/file/:name')
.get(getFile)
.patch(updateFile)