File tree Expand file tree Collapse file tree 4 files changed +8
-2
lines changed
templates/gocam_connections Expand file tree Collapse file tree 4 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 149149} ;
150150
151151const summaryType = '{{summary_type}}' ;
152+ const apiPath = '{{api_path}}' ;
152153
153154let currentModels = [ ] ;
154155
155156document . addEventListener ( 'DOMContentLoaded' , async function ( ) {
156- const url = '/api/v1/dataset/latest/data/gocam/model_summary /' + summaryType ;
157+ const url = apiPath + ' /' + summaryType ;
157158 const response = await fetch ( url ) ;
158159
159160 const modelConnections = await response . json ( ) ;
Original file line number Diff line number Diff line change 22
33def index (request ):
44 summary_type = request .GET .get ('summary_type' , 'connected_only' ).strip ()
5+ api_path = request .GET .get ('api_path' , '' ).strip ()
56
67 context = {
78 'summary_type' : summary_type ,
9+ 'api_path' : api_path ,
810 }
911
1012 return render (request , 'gocam_connections/index.html' , context )
Original file line number Diff line number Diff line change 204204
205205const fullOrWidget = '{{full_or_widget}}' ;
206206const gocamId = '{{gocam_id}}' ;
207+ const apiPath = '{{api_path}}' ;
207208
208- let url = '/api/v1/dataset/latest/data/go-cam-cytoscape /' + gocamId ;
209+ let url = apiPath + ' /' + gocamId ;
209210
210211let gocamIdNoFlags = gocamId ;
211212let flags = [ ] ;
Original file line number Diff line number Diff line change 33def index (request ):
44 full_or_widget = request .GET .get ('full_or_widget' , '' ).strip ()
55 gocam_id = request .GET .get ('gocam_id' , '' ).strip ()
6+ api_path = request .GET .get ('api_path' , '' ).strip ()
67 highlight_gene_ids = request .GET .get ('highlight_gene_ids' , '' ).strip ()
78
89 if full_or_widget == 'widget' :
@@ -13,6 +14,7 @@ def index(request):
1314 context = {
1415 'full_or_widget' : full_or_widget ,
1516 'gocam_id' : gocam_id ,
17+ 'api_path' : api_path ,
1618 'highlight_gene_ids' : highlight_gene_ids .split (',' ),
1719 }
1820
You can’t perform that action at this time.
0 commit comments