|
@@ -1 +1,26 @@
|
|
|
-<%= JsRoutes.generate(include: /blazer/) %>
|
|
|
+<%#= JsRoutes.generate(engine: Blazer::Engine, prefix: Blazer::Engine.app.url_helpers.root_path) %>
|
|
|
+
|
|
|
+// temp fix
|
|
|
+var Routes = {
|
|
|
+ run_queries_path: function() {
|
|
|
+ return gon.root_path + "queries/run"
|
|
|
+ },
|
|
|
+ cancel_queries_path: function() {
|
|
|
+ return gon.root_path + "queries/cancel"
|
|
|
+ },
|
|
|
+ schema_queries_path: function(params) {
|
|
|
+ return gon.root_path + "queries/schema?data_source=" + params.data_source
|
|
|
+ },
|
|
|
+ tables_queries_path: function(params) {
|
|
|
+ return gon.root_path + "queries/tables?data_source=" + params.data_source
|
|
|
+ },
|
|
|
+ queries_path: function() {
|
|
|
+ return gon.root_path + "queries"
|
|
|
+ },
|
|
|
+ query_path: function(id) {
|
|
|
+ return gon.root_path + "queries/" + id
|
|
|
+ },
|
|
|
+ dashboard_path: function(id) {
|
|
|
+ return gon.root_path + "dashboards/" + id
|
|
|
+ }
|
|
|
+}
|