fix(jellyfin): fix test route to take body
This commit is contained in:
1 parent
543aad4236
commit
9097e369c8
2 files changed
+24
-5
No files matched your search
@@ -95,7 +95,14 @@ async function testConnection() {
|
||||
testing.value = true
|
||||
testResult.value = null
|
||||
try {
|
||||
const res = await fetch('/api/jellyfin/test', { method: 'POST', credentials: 'include' })
|
||||
const res = await fetch('/api/jellyfin/test', {
|
||||
method: 'POST',
|
||||
credentials: 'include',
|
||||
body: JSON.stringify({
|
||||
jellyfinUrl,
|
||||
jellyfinAdminToken
|
||||
})
|
||||
})
|
||||
testResult.value = await res.json()
|
||||
} catch {
|
||||
testResult.value = { ok: false, error: 'Impossible de contacter le serveur' }
|
||||
|
||||
Reference in new issue
Block a user