$:.unshift(File.dirname(__FILE__))

require 'config/environment'
require 'api/v1'
require 'config/logging'
require 'rack/contrib'

ENV['RACK_ENV'] ||= 'development'
set :environment, ENV['RACK_ENV'].to_sym

use Rack::CommonLogger

map "/api/tiramisu/v1" do
  use Rack::PostBodyContentTypeParser
  use Rack::MethodOverride
  run TiramisuV1
end

environment = Sprockets::Environment.new
environment.append_path 'api/v1/assets'

Sprockets::Helpers.configure do |config|
  config.environment = environment
  config.prefix = "/api/tiramisu/v1/assets"
  config.digest = false
end

map "/api/tiramisu/v1/assets" do
  run environment
end

unless production?
  environment.append_path 'examples/v1/assets'

  require "examples/v1"
  map "/examples/v1" do
    run ExamplesV1
  end  
end

$:.unshift(File.dirname(__FILE__))

require 'config/environment'
require 'api/v1'
require 'rack/contrib'

ENV['RACK_ENV'] ||= 'development'
set :environment, ENV['RACK_ENV'].to_sym

use Rack::CommonLogger

map "/api/tiramisu/v1" do
  use Rack::PostBodyContentTypeParser
  use Rack::MethodOverride
  run TiramisuV1
end

environment = Sprockets::Environment.new
environment.append_path 'api/v1/assets'

Sprockets::Helpers.configure do |config|
  config.environment = environment
  config.prefix = "/api/tiramisu/v1/assets"
  config.digest = false
end

map "/api/tiramisu/v1/assets" do
  run environment
end

unless production?
  environment.append_path 'examples/v1/assets'

  require "examples/v1"
  map "/examples/v1" do
    run ExamplesV1
  end  
end

Delete reference to missing file
Delete reference to missing file
