noosfero | Api block preview (!1240)
Leandro Nunes
gitlab at mg.gitlab.com
Fri Jun 16 10:53:33 BRT 2017
Leandro Nunes started a new discussion on app/api/v1/blocks.rb:
>
> class Blocks < Grape::API
>
> + resource :profiles do
> + segment '/:profile_id' do
> + resource :blocks do
> + resource :preview do
> + get do
> + block_type = params[:block_type]
> + return forbidden! unless Object.const_defined?(block_type) && block_type.constantize <= Block
@maljunior please make some tests for this conditions
---
Reply to this email directly or view it on GitLab: https://gitlab.com/noosfero/noosfero/merge_requests/1240#note_32537132
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20170616/f80cf328/attachment-0001.html>
More information about the Noosfero-dev
mailing list