Skip to content
Snippets Groups Projects
Commit dd088d14 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg
Browse files

GrapeDSL for Keys endpoint

parent fc6ae3fb
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -4,10 +4,9 @@ module API
before { authenticate! }
 
resource :keys do
# Get single ssh key by id. Only available to admin users.
#
# Example Request:
# GET /keys/:id
desc 'Get single ssh key by id. Only available to admin users' do
success Entities::SSHKeyWithUser
end
get ":id" do
authenticated_as_admin!
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment