Fix file upload endpoint path
This commit is contained in:
parent
273ecdfafc
commit
b000ae0a51
@ -1,6 +1,5 @@
|
|||||||
import {Component, ElementRef, Inject, Input, OnInit, ViewChild} from '@angular/core';
|
import {Component, ElementRef, Inject, Input, OnInit, ViewChild} from '@angular/core';
|
||||||
import {ApiService, ResourceNotAvailableOfflineError} from '../../../service/api.service';
|
import {ApiService, ResourceNotAvailableOfflineError} from '../../../service/api.service';
|
||||||
import {AlertController} from '@ionic/angular';
|
|
||||||
import { APP_BASE_HREF } from '@angular/common';
|
import { APP_BASE_HREF } from '@angular/common';
|
||||||
import {EditorService} from '../../../service/editor.service';
|
import {EditorService} from '../../../service/editor.service';
|
||||||
import {EditorNodeContract} from '../../nodes/EditorNode.contract';
|
import {EditorNodeContract} from '../../nodes/EditorNode.contract';
|
||||||
@ -84,7 +83,7 @@ export class FilesComponent extends EditorNodeContract implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getApiSubmit() {
|
getApiSubmit() {
|
||||||
return this.api._build_url(`file/upload/${this.page.UUID}/${this.node.UUID}/${this.node.Value.Value}`);
|
return this.api._build_url(`files/upload/${this.page.UUID}/${this.node.UUID}/${this.node.Value.Value}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
onSubmitClick() {
|
onSubmitClick() {
|
||||||
|
Loading…
Reference in New Issue
Block a user