refactor(routes):

- keep install-mode root redirect to /install and add tests covering install root redirect and install page serving
- change root backend handler from Any("/") to POST("/") so GET / can consistently serve the SPA after install

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
line-6000
2026-04-25 18:48:28 +08:00
parent 485059f60e
commit 95879e33d4
140 changed files with 285 additions and 197 deletions
+1
View File
@@ -0,0 +1 @@
import{E as e}from"./messages-BOl-zx8S.js";import{a as t}from"./auth-store-D_jr_Pei.js";import{n}from"./dist-BNiRpK39.js";function r(e){return t.useQuery(`get`,`/admin/api/v1/settings`,e?{params:{query:{group:e}}}:void 0)}function i(){return t.useMutation(`put`,`/admin/api/v1/settings`)}function a(){return t.useMutation(`delete`,`/admin/api/v1/settings/{key}`)}function o(e,t,n=``){return e?.find(e=>e.key===t)?.value??n}async function s(t,r,i=e()){await t({body:{items:r}}),n.success(i)}export{i as a,r as i,s as n,a as r,o as t};