fix: Correct API URL for backup downloads
This commit is contained in:
@@ -52,7 +52,7 @@ async function downloadRepo(repo: Repo) {
|
|||||||
try {
|
try {
|
||||||
const [owner, repoName] = repo.fullName.split('/')
|
const [owner, repoName] = repo.fullName.split('/')
|
||||||
const response = await fetch(
|
const response = await fetch(
|
||||||
`${import.meta.env.VITE_API_URL || 'https://api.ams.kronos-soulution.de'}/api/backup/download/${owner}/${repoName}?branch=${repo.branch}`,
|
`${import.meta.env.VITE_API_URL || 'https://api.ams.kronos-soulution.de/api'}/backup/download/${owner}/${repoName}?branch=${repo.branch}`,
|
||||||
{
|
{
|
||||||
headers: {
|
headers: {
|
||||||
'Authorization': `Bearer ${localStorage.getItem('token')}`
|
'Authorization': `Bearer ${localStorage.getItem('token')}`
|
||||||
|
|||||||
Reference in New Issue
Block a user