Sha256: 2523886fcb0974ac0644b7b9f09066a39d7586eb1748eb412fa8d8095db79950
Contents?: true
Size: 656 Bytes
Versions: 6
Compression:
Stored size: 656 Bytes
Contents
module Locomotive module Api class ThemeAssetsController < BaseController def index @theme_assets = current_site.theme_assets.all respond_with(@theme_assets) end def create @theme_asset = current_site.theme_assets.create(params[:theme_asset]) respond_with @theme_asset, :location => main_app.locomotive_api_theme_assets_url end def update @theme_asset = current_site.theme_assets.find(params[:id]) @theme_asset.update_attributes(params[:theme_asset]) respond_with @theme_asset, :location => main_app.locomotive_api_theme_assets_url end end end end
Version data entries
6 entries across 6 versions & 1 rubygems