Commit 59ce64fe authored by Kushal Pandya's avatar Kushal Pandya Committed by Gabriel Mazetto

Add `projects` route

parent 41edd1e3
...@@ -136,6 +136,9 @@ namespace :admin do ...@@ -136,6 +136,9 @@ namespace :admin do
post :toggle post :toggle
get :status get :status
end end
collection do
get :projects
end
end end
get '/dashboard/stats', to: 'dashboard#stats' get '/dashboard/stats', to: 'dashboard#stats'
......
...@@ -13,6 +13,10 @@ class Admin::GeoNodesController < Admin::ApplicationController ...@@ -13,6 +13,10 @@ class Admin::GeoNodesController < Admin::ApplicationController
end end
end end
def projects
@nodes = GeoNode.all.order(:id)
end
def create def create
@node = Geo::NodeCreateService.new(geo_node_params).execute @node = Geo::NodeCreateService.new(geo_node_params).execute
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment