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
b63a22c6
Commit
b63a22c6
authored
Mar 06, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Toon: Expose `web_edit_url` and `status` URLs to API response
parent
ccb3ceec
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ee/lib/ee/api/entities.rb
ee/lib/ee/api/entities.rb
+8
-0
No files found.
ee/lib/ee/api/entities.rb
View file @
b63a22c6
...
@@ -224,11 +224,19 @@ module EE
...
@@ -224,11 +224,19 @@ module EE
'http'
'http'
end
end
expose
:web_edit_url
do
|
geo_node
|
::
Gitlab
::
Routing
.
url_helpers
.
edit_admin_geo_node_url
(
geo_node
)
end
expose
:_links
do
expose
:_links
do
expose
:self
do
|
geo_node
|
expose
:self
do
|
geo_node
|
expose_url
api_v4_geo_nodes_path
(
id:
geo_node
.
id
)
expose_url
api_v4_geo_nodes_path
(
id:
geo_node
.
id
)
end
end
expose
:status
do
|
geo_node
|
expose_url
api_v4_geo_nodes_status_path
(
id:
geo_node
.
id
)
end
expose
:repair
do
|
geo_node
|
expose
:repair
do
|
geo_node
|
expose_url
api_v4_geo_nodes_repair_path
(
id:
geo_node
.
id
)
expose_url
api_v4_geo_nodes_repair_path
(
id:
geo_node
.
id
)
end
end
...
...
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