From b000ae0a51c74d40eda92e7b876ce81f22180e2f Mon Sep 17 00:00:00 2001 From: garrettmills Date: Sun, 15 Nov 2020 10:59:46 -0600 Subject: [PATCH] Fix file upload endpoint path --- src/app/components/editor/files/files.component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/app/components/editor/files/files.component.ts b/src/app/components/editor/files/files.component.ts index 7d1c96f..ec8cabb 100644 --- a/src/app/components/editor/files/files.component.ts +++ b/src/app/components/editor/files/files.component.ts @@ -1,6 +1,5 @@ import {Component, ElementRef, Inject, Input, OnInit, ViewChild} from '@angular/core'; import {ApiService, ResourceNotAvailableOfflineError} from '../../../service/api.service'; -import {AlertController} from '@ionic/angular'; import { APP_BASE_HREF } from '@angular/common'; import {EditorService} from '../../../service/editor.service'; import {EditorNodeContract} from '../../nodes/EditorNode.contract'; @@ -84,7 +83,7 @@ export class FilesComponent extends EditorNodeContract implements OnInit { } 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() {