fix api proxy, route urls and filters

This commit is contained in:
2021-07-16 00:39:41 -06:00
parent 9253a84d7e
commit dcd3c0a95b
5 changed files with 20 additions and 5 deletions

View File

@ -147,7 +147,7 @@ function createFEServiceFunc(view: EndpointDef): string {
}
let addTypeDeclaration = method === 'get' || method === 'post';
let useList = view.type === 'list' || view.type === 'search';
let url = URL[view.type](view).replace(':' + view.component + '_id', '\' + ' + view.component + '_id');
let url = view.component + '/' + URL[view.type](view).replace(':' + view.component + '_id', '\' + ' + view.component + '_id');
let isUpdateOrCreate = view.type === 'update' || view.type === 'create';
func = `