Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ConfigurationController < ApiController
- def index
- render jsonapi: {
- footer_text: 'CopyRight',
- footer_color: '#FFF',
- footer_logo: 's3_iamge_path',
- }
- end
- end
- class ConfigurationSerializer < JSONAPI::Serializable::Resource
- attributes :footer_text, :footer_color, :footer_logo
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement