etc/app.d/base.rb in rbbt-util-5.5.29 vs etc/app.d/base.rb in rbbt-util-5.5.30
- old
+ new
@@ -1,9 +1,15 @@
#{{{ MODULES AND HELPERS
+register Sinatra::RbbtRESTWorkflow
+if Rbbt.etc.workflows.find.exists?
+ Rbbt.etc.workflows.find.read.split("\n").each do |workflow|
+ Workflow.require_workflow workflow
+ add_workflow Kernel.const_get(workflow), true
+ end
+end
register Sinatra::RbbtRESTMain
register Sinatra::RbbtRESTEntity
-register Sinatra::RbbtRESTWorkflow
register Sinatra::RbbtRESTFileServer # Remove to prevent serving files
register Sinatra::RbbtRESTKnowledgeBase
helpers Sinatra::RbbtMiscHelpers
#{{{ SESSIONS
@@ -22,13 +28,7 @@
set :favourite_lists_dir , local_var.sinatra.favourite_lists
set :favourite_maps_dir , local_var.sinatra.favourite_maps
#{{{ WORKFLOWS
-if Rbbt.etc.workflows.find.exists?
- Rbbt.etc.workflows.find.read.split("\n").each do |workflow|
- Workflow.require_workflow workflow
- add_workflow Kernel.const_get(workflow), true
- end
-end