add: patch action to request

This commit is contained in:
viletyy 2022-06-23 15:04:55 +08:00
parent 12be9eb754
commit e5057dcd86
1 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,10 @@ module Gitea
do_request('PUT', api_url, http_options, &block)
end
def patch(api_url = '', http_options = {}, &block)
do_request('PATCH', api_url, http_options, &block)
end
def post(api_url = '', http_options = {}, &block)
do_request('POST', api_url, http_options, &block)
end