更新rmbg api端点

This commit is contained in:
jingrow 2026-01-03 00:07:32 +08:00
parent d81526d2e0
commit 2afe515c5e
3 changed files with 5 additions and 5 deletions

View File

@ -544,7 +544,7 @@ const handleRemoveBackground = async () => {
const controller = new AbortController() const controller = new AbortController()
const timeoutId = setTimeout(() => controller.abort(), 180000) const timeoutId = setTimeout(() => controller.abort(), 180000)
const response = await fetch('/tools/rmbg/file/free', { const response = await fetch('/api/v1/tools/rmbg/file/free', {
method: 'POST', method: 'POST',
body: formData, body: formData,
signal: controller.signal signal: controller.signal

View File

@ -635,7 +635,7 @@ const handleRemoveBackground = async () => {
const controller = new AbortController() const controller = new AbortController()
const timeoutId = setTimeout(() => controller.abort(), 180000) const timeoutId = setTimeout(() => controller.abort(), 180000)
const response = await fetch('/tools/rmbg/file/free', { const response = await fetch('/api/v1/tools/rmbg/file/free', {
method: 'POST', method: 'POST',
body: formData, body: formData,
signal: controller.signal signal: controller.signal

View File

@ -65,17 +65,17 @@ export default defineConfig(({ mode, command }) => {
allow: [appsDir] allow: [appsDir]
}, },
proxy: { proxy: {
'/api': { '/api/action': {
target: JCLOUD_URL, target: JCLOUD_URL,
changeOrigin: true, changeOrigin: true,
secure: true, secure: true,
}, },
'/jingrow': { '/api/data': {
target: JCLOUD_URL, target: JCLOUD_URL,
changeOrigin: true, changeOrigin: true,
secure: true, secure: true,
}, },
'/tools': { '/api/v1/tools': {
target: BACKEND_URL, target: BACKEND_URL,
changeOrigin: true, changeOrigin: true,
secure: true, secure: true,