Configuring ngnix to proxy request toward the Node server
Change-Id: If9ae80afeef276886f87602d6d973bb30ac19dce
diff --git a/src/app/core/nav/nav.ts b/src/app/core/nav/nav.ts
index d83f859..d978ef0 100644
--- a/src/app/core/nav/nav.ts
+++ b/src/app/core/nav/nav.ts
@@ -9,6 +9,10 @@
private $state: angular.ui.IStateService,
private navigationService: IXosNavigationService
) {
+ // NOTE we'll need to have:
+ // - Base routes (defined from configuration based on BRAND)
+ // - Autogenerated routes (nested somewhere)
+ // - Service Routes (dynamically added)
this.routes = this.navigationService.query();
}
diff --git a/src/index.ts b/src/index.ts
index bdb09ab..81a0d43 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -47,7 +47,7 @@
return;
}
return {
- label: `${f.name}`,
+ label: `${f.name}`, // TODO confert name to label
prop: f.name
};
})
@@ -77,7 +77,7 @@
_.forEach(models, (m: IModeldef) => {
const state: IXosState = {
parent: 'xos',
- url: `${m.name.toLowerCase()}s`,
+ url: `${m.name.toLowerCase()}s`, // TODO use https://github.com/blakeembrey/pluralize
component: 'xosCrud',
data: {
model: m.name,