Skip to content

Instantly share code, notes, and snippets.

@amb26
Created August 5, 2015 18:52
Show Gist options
  • Select an option

  • Save amb26/d84e4a6743f3df9a001c to your computer and use it in GitHub Desktop.

Select an option

Save amb26/d84e4a6743f3df9a001c to your computer and use it in GitHub Desktop.
fluid.defaults("kettle.requests", {
gradeNames: ["fluid.component"],
events: {
createRequest: null // fired by our handler once express determines that route + verb is a match
},
dynamicComponents: {
request: {
createOnEvent: "createRequest",
type: "{arguments}.3.type",
options: {
req: "{arguments}.0",
res: "{arguments}.1",
next: "{arguments}.2",
gradeNames: "{arguments}.3.options.gradeNames"
}
}
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment