更新rmbg api端点
This commit is contained in:
parent
d81526d2e0
commit
2afe515c5e
@ -544,7 +544,7 @@ const handleRemoveBackground = async () => {
|
||||
const controller = new AbortController()
|
||||
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',
|
||||
body: formData,
|
||||
signal: controller.signal
|
||||
|
||||
@ -635,7 +635,7 @@ const handleRemoveBackground = async () => {
|
||||
const controller = new AbortController()
|
||||
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',
|
||||
body: formData,
|
||||
signal: controller.signal
|
||||
|
||||
@ -65,17 +65,17 @@ export default defineConfig(({ mode, command }) => {
|
||||
allow: [appsDir]
|
||||
},
|
||||
proxy: {
|
||||
'/api': {
|
||||
'/api/action': {
|
||||
target: JCLOUD_URL,
|
||||
changeOrigin: true,
|
||||
secure: true,
|
||||
},
|
||||
'/jingrow': {
|
||||
'/api/data': {
|
||||
target: JCLOUD_URL,
|
||||
changeOrigin: true,
|
||||
secure: true,
|
||||
},
|
||||
'/tools': {
|
||||
'/api/v1/tools': {
|
||||
target: BACKEND_URL,
|
||||
changeOrigin: true,
|
||||
secure: true,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user