Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
59ce64fe
Commit
59ce64fe
authored
Jul 10, 2018
by
Kushal Pandya
Committed by
Gabriel Mazetto
Aug 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add `projects` route
parent
41edd1e3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
config/routes/admin.rb
config/routes/admin.rb
+3
-0
ee/app/controllers/admin/geo_nodes_controller.rb
ee/app/controllers/admin/geo_nodes_controller.rb
+4
-0
No files found.
config/routes/admin.rb
View file @
59ce64fe
...
...
@@ -136,6 +136,9 @@ namespace :admin do
post
:toggle
get
:status
end
collection
do
get
:projects
end
end
get
'/dashboard/stats'
,
to:
'dashboard#stats'
...
...
ee/app/controllers/admin/geo_nodes_controller.rb
View file @
59ce64fe
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment