I have created a module with a rest store but the url returns a 404. I have the follwing:
[RestStore("teststore")]
public class StoreHandlerSample : RestControllerBase
return declare("ddd.ModuleInitializer", [_Module], {
initialize: function () {
this.inherited(arguments);
var registry = this.resolveDependency("epi.storeregistry");
registry.create("teststore", this._getRestPath("teststore"));
},
_getRestPath: function (name) {
return routes.getRestPath({ moduleArea: "Demo", storeName: name });
}
});
My module is called demo but when I hit localhost/modules/Demo/Stores/teststore I am getting a 404 error.
Any help would be appreciated.
Thanks