Configuring ngnix to proxy request toward the Node server
Change-Id: If9ae80afeef276886f87602d6d973bb30ac19dce
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,