moduleAPIclassSettings<Grape::APIbefore{authenticate!}before{authorize_admin_project}helpersdodefcurrent_settings@current_setting||=ApplicationSetting.currentendend# Get current applicaiton settings## Example Request:# GET /application/settingsget"application/settings"dopresentcurrent_settings,with: Entities::ApplicationSettingend# Modify applicaiton settings## Example Request:# PUT /application/settingsput"application/settings"doattributes=current_settings.attributes.keys-["id"]attrs=attributes_for_keys(attributes)ifcurrent_settings.update_attributes(attrs)presentcurrent_settings,with: Entities::ApplicationSettingelserender_validation_error!(current_settings)endendendend