Skip to content

Commit

Permalink
started to add plugin awesomeness
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandunn committed Mar 11, 2016
1 parent 20645a0 commit 5e75639
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions grails-app/controllers/org/bbop/apollo/JbrowseController.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class JbrowseController {

private static final int DEFAULT_BUFFER_SIZE = 10240; // ..bytes = 10KB.

def grailsApplication
def sequenceService
def permissionService
def preferenceService
Expand Down Expand Up @@ -337,6 +338,16 @@ class JbrowseController {
if(jsonObject.include==null) jsonObject.put("include",new JSONArray())
jsonObject.include.add("../plugins/WebApollo/json/annot.json")

def plugins = grailsApplication.config.jbrowse?.plugins
// not sure if I do it this way or via the include
if(plugins){
for(plugin in plugins){
JSONObject pluginObject = new JSONObject()

jsonObject.plugins.add(pluginObject)
}
}

response.outputStream << jsonObject.toString()
response.outputStream.close()
}
Expand Down

0 comments on commit 5e75639

Please sign in to comment.