Add openapi spec

This commit is contained in:
2024-10-02 10:40:01 +08:00
parent 4421f4fb15
commit b281f99331
4 changed files with 335 additions and 2 deletions

View File

@@ -20,7 +20,7 @@ export const handler: Handlers = {
return return_error(403, "Permission denied.");
}
const st = <SharedToken | undefined> ctx.state.shared_token;
const tokens = ctx.params.token.split(",");
const tokens = decodeURIComponent(ctx.params.token).split(",");
const m = get_task_manager();
const enable_server_timing = m.cfg.enable_server_timing;
const start = enable_server_timing ? Date.now() : 0;