API version returns last version set
* fixed in grape v0.2.2
This commit is contained in:
parent
c177593e2c
commit
968c09ae91
2 changed files with 2 additions and 3 deletions
|
@ -18,7 +18,7 @@ module ApiHelpers
|
|||
#
|
||||
# Returns the relative path to the requested API resource
|
||||
def api(path, user = nil)
|
||||
"/api/#{Gitlab::API::VERSION}#{path}" +
|
||||
"/api/#{Gitlab::API.version}#{path}" +
|
||||
|
||||
# Normalize query string
|
||||
(path.index('?') ? '' : '?') +
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue