/api/allowed use POST now

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2014-09-03 09:06:16 +03:00
parent 20c2e90222
commit 0a7dea29aa
No known key found for this signature in database
GPG Key ID: 627C5F589F467F17
2 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ module API
# ref - branch name
# forced_push - forced_push
#
get "/allowed" do
post "/allowed" do
# Check for *.wiki repositories.
# Strip out the .wiki from the pathname before finding the
# project. This applies the correct project permissions to

View File

@ -155,7 +155,7 @@ describe API::API, api: true do
end
def pull(key, project)
get(
post(
api("/internal/allowed"),
key_id: key.id,
project: project.path_with_namespace,
@ -164,7 +164,7 @@ describe API::API, api: true do
end
def push(key, project)
get(
post(
api("/internal/allowed"),
changes: 'd14d6c0abdd253381df51a723d58691b2ee1ab08 570e7b2abdd848b95f2f578043fc23bd6f6fd24d refs/heads/master',
key_id: key.id,
@ -174,7 +174,7 @@ describe API::API, api: true do
end
def archive(key, project)
get(
post(
api("/internal/allowed"),
ref: 'master',
key_id: key.id,