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
post :toggle
get :status
end
collection do
get :projects
end
end
get '/dashboard/stats', to: 'dashboard#stats'
......
......@@ -13,6 +13,10 @@ class Admin::GeoNodesController < Admin::ApplicationController
end
end
def projects
@nodes = GeoNode.all.order(:id)
end
def create
@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