Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make a little easier to define getDataModel

  • Loading branch information...
commit 59d8e6ecf9b08add2eb0f56fefa41cfae1c64d53 1 parent 994af87
@kriszyp authored
Showing with 5 additions and 3 deletions.
  1. +5 −3 pintura.js
View
8 pintura.js
@@ -21,11 +21,13 @@ var config = exports.config = {
responseCache: require("perstore/store/memory").Memory({path: "response"}), //require("perstore/store/filesystem").FileSystem("response", {defaultExtension: "cache",dataFolder: "cache" }),
serverName: "Pintura",
customRoutes: [],
- getDataModel: function(){
- throw new Error("You must assign a getDataModel method to the pintura config object in order to expose data");
+ getDataModel: function(request){
+ return exports.getDataModel(request);
}
};
-
+exports.getDataModel = function(){
+ throw new Error("You must assign a getDataModel method to the pintura config object in order to expose data");
+};
exports.app = JsgiApp(null, config);
function JsgiApp(nextApp, config){

0 comments on commit 59d8e6e

Please sign in to comment.
Something went wrong with that request. Please try again.