Skip to content

Instantly share code, notes, and snippets.

@sgithens
Created August 27, 2014 00:22
Show Gist options
  • Select an option

  • Save sgithens/ba1640625bdbb2c728eb to your computer and use it in GitHub Desktop.

Select an option

Save sgithens/ba1640625bdbb2c728eb to your computer and use it in GitHub Desktop.
GPII url handler register
var defs = fluid.indexDefaults("myIndex", {gradeNames: "kettle.app",
indexFunc: function () { return ["myKey"]}});
for (var i=0; i < defs.myKey.length; i++) {
console.log(fluid.getGradedDefaults(defs.myKey[i]).handlers);
}
@sgithens
Copy link
Copy Markdown
Author

sgithens commented Sep 1, 2014

for (var i=0; i < defs.myKey.length; i++) {
... console.log(defs.myKey[i]);
... console.log(fluid.getGradedDefaults(defs.myKey[i]).handlers);
... }
kettle.app
{}
gpii.matchMaker
{ matchPost: { route: '/match', type: 'post' } }
gpii.matchMakerProxy
{ proxyMatchPost: { route: '/match', type: 'post' } }
gpii.deviceReporter
{ deviceGet: { route: '/device', type: 'get' } }
gpii.lifecycleManagerServer
{ lifecycleManagerStart: { route: '/start/:token', type: 'post' },
lifecycleManagerStop: { route: '/stop/:token', type: 'post' },
lifecycleManagerUpdate: { route: '/update/:token', type: 'post' } }
gpii.flowManager
{ userLogin: { route: '/user/:token/login', type: 'get' },
userLogout: { route: '/user/:token/logout', type: 'get' },
getToken: { route: '/token', type: 'get' } }
gpii.preferencesServer
{ userGet: { route: '/user/:token', type: 'get', useSession: 'existing' },
userPost: { route: '/user/:token?', type: 'post' } }
gpii.ontologyServer
{ ontologyConvertPost: { route: '/ontology/convert/:to', type: 'post' } }
gpii.securityGateway
{ verifyLogin: { route: '/verifylogin', type: 'get', useSession: 'existing' } }
gpii.solutionsRegistry
{ solutionGet: { route: '/solution/:id', type: 'get' },
solutionPost: { route: '/solution/:id', type: 'post' },
solutionQuery: { route: '/solution?:query', type: 'get' } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment