Skip to content

Commit

Permalink
fixed URL mapping to support having and not having a client_token
Browse files Browse the repository at this point in the history
  • Loading branch information
nathandunn committed May 11, 2016
1 parent 0a3382c commit 320dc07
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions grails-app/conf/UrlMappings.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,19 @@ class UrlMappings {

"/${clientToken}/AnnotationEditorService"(controller:"annotationEditor",action: "handleOperation",params:params)
"/Login"(controller:"login",action: "handleOperation",params:params)
// "/ProxyService"(controller:"ncbiProxyService",action: "index",params:params)
"/${clientToken}/proxy/request/${url}"(controller:"proxy", action: "request")

"/proxy/request/${url}"(controller:"proxy", action: "request")
"/${clientToken}/proxy/request/${url}"(controller:"proxy", action: "request")

"/ProxyService"(controller:"ncbiProxyService",action: "index",params:params)
"/${clientToken}/ProxyService"(controller:"ncbiProxyService",action: "index",params:params)
// "/IOService"(controller:"IOService",action: "handleOperation",params:params)
// "/IOService/download"(controller:"IOService",action: "download", params:params)

"/IOService"(controller:"IOService",action: "handleOperation",params:params)
"/${clientToken}/IOService"(controller:"IOService",action: "handleOperation",params:params)

"/IOService/download"(controller:"IOService",action: "download", params:params)
"/${clientToken}/IOService/download"(controller:"IOService",action: "download", params:params)

"/jbrowse/web_services/api"(controller:"annotationEditor",action: "web_services", params:params)
"/jbrowse/web_services/api"(controller:"webServices",action: "index", params:params)
}
Expand Down

0 comments on commit 320dc07

Please sign in to comment.