Created
April 12, 2019 09:06
-
-
Save sudeeptarlekar/53a3ba0bc84b28730e31ebcdd58a7d36 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment