Commit c7b19a18 authored by Vijay Hawoldar's avatar Vijay Hawoldar

Use correct Entity in Snippet API

parent f9bf7cf9
...@@ -24,13 +24,13 @@ module API ...@@ -24,13 +24,13 @@ module API
desc 'Get a snippets list for authenticated user' do desc 'Get a snippets list for authenticated user' do
detail 'This feature was introduced in GitLab 8.15.' detail 'This feature was introduced in GitLab 8.15.'
success Entities::PersonalSnippet success Entities::Snippet
end end
params do params do
use :pagination use :pagination
end end
get do get do
present paginate(snippets_for_current_user), with: Entities::PersonalSnippet present paginate(snippets_for_current_user), with: Entities::Snippet
end end
desc 'List all public personal snippets current_user has access to' do desc 'List all public personal snippets current_user has access to' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment