Closed adam-clarey closed 8 years ago
This is quite a biggy, I went through all core and extra modules and replaced the old iris.app.get with iris.route.get's
I also added the various route details for each, eg:
/** * Define callback routes. */ var routes = { create: { title: "Create trigger", description: "Create system trigger routine.", permissions: ["can access admin pages"], menu: [{ menuName: "admin_toolbar", parent: '/admin/config/triggers', title: "Create trigger" }] } }
I also added comments to all page callbacks and moved the position of code elements to follow a common convention. eg
global variable (eg, var fs = require('fs');)
permissions (static and callbacks)
routes (eg, see above)
page callbacks (eg, iris.route.get("/admin/config/triggers/create", routes.create, function (req, res) )
hooks
Waiting on #124 to be merged before i can do entityUI and schemaUI as it will cause a conflict
Epic indeed. +1
This is quite a biggy, I went through all core and extra modules and replaced the old iris.app.get with iris.route.get's
I also added the various route details for each, eg:
I also added comments to all page callbacks and moved the position of code elements to follow a common convention. eg
global variable (eg, var fs = require('fs');)
permissions (static and callbacks)
routes (eg, see above)
page callbacks (eg, iris.route.get("/admin/config/triggers/create", routes.create, function (req, res) )
hooks