👽 Update API path

This commit is contained in:
2025-12-19 22:16:48 +08:00
parent 7170a6214b
commit 6b46616de4
10 changed files with 20 additions and 20 deletions

View File

@@ -45,7 +45,7 @@ async function fetchSpell() {
loading.value = true
try {
const resp = await api<SnSpell>(
`/id/spells/${encodeURIComponent(spellWord)}`
`/pass/spells/${encodeURIComponent(spellWord)}`
)
spell.value = resp
} catch (err: unknown) {
@@ -58,7 +58,7 @@ async function fetchSpell() {
async function applySpell() {
submitting.value = true
try {
await api(`/id/spells/${encodeURIComponent(spellWord)}/apply`, {
await api(`/pass/spells/${encodeURIComponent(spellWord)}/apply`, {
method: "POST",
headers: { "Content-Type": "application/json" },
body: newPassword.value