Fix file upload endpoint path
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Garrett Mills 2020-11-15 10:59:46 -06:00
parent 273ecdfafc
commit b000ae0a51
Signed by: garrettmills
GPG Key ID: D2BF5FBA8298F246

View File

@ -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() {