Add file uploader support

This commit is contained in:
garrettmills
2020-02-09 04:37:52 -06:00
parent f4c86a06e2
commit 813f4b094b
13 changed files with 172 additions and 23 deletions

View File

@@ -48,7 +48,7 @@ export class ApiService {
});
}
private _build_url(endpoint) {
public _build_url(endpoint) {
if ( !endpoint.startsWith('/') ) {
endpoint = `/${endpoint}`;
}

View File

@@ -52,7 +52,6 @@ export class PageService {
}
save_nodes(page: PageRecord, nodes: Array<HostRecord>): Observable<Array<HostRecord>> {
console.log('save nodes', {nodes})
return new Observable<Array<HostRecord>>(sub => {
nodes = nodes.map(x => {
x.PageId = page.UUID;