mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-25 10:20:38 +00:00
api refactoring
This commit is contained in:
+3
-3
@@ -149,9 +149,9 @@ const actions = {
|
||||
return new Promise((resolve, reject) => {
|
||||
// Get route
|
||||
let route = {
|
||||
RequestUpload: `/api/upload-request/${router.currentRoute.params.token}/upload`,
|
||||
Public: `/api/editor/upload/${router.currentRoute.params.token}`,
|
||||
}[router.currentRoute.name] || '/api/upload'
|
||||
RequestUpload: `/api/upload-request/${router.currentRoute.params.token}/upload/chunks`,
|
||||
Public: `/api/editor/upload/chunks/${router.currentRoute.params.token}`,
|
||||
}[router.currentRoute.name] || '/api/upload/chunks'
|
||||
|
||||
// Create cancel token for axios cancellation
|
||||
const CancelToken = axios.CancelToken,
|
||||
|
||||
Reference in New Issue
Block a user