removed redundant ribica name from subfolders

This commit is contained in:
Edin Dazdarevic
2015-01-22 22:20:34 +01:00
parent 13296062f4
commit 335e954bce
150 changed files with 18 additions and 18 deletions

21
front-api/app.rb Normal file
View File

@@ -0,0 +1,21 @@
require 'sinatra'
require 'sinatra/activerecord'
require './config'
require 'json'
Dir[File.dirname(__FILE__) + '/models/*.rb'].each {|file| require file }
set :bind, '0.0.0.0'
before do
content_type :json
# TODO: before running to production change this so that only specific
# domain is allowed
headers 'Access-Control-Allow-Origin' => '*',
'Access-Control-Allow-Methods' => ['OPTIONS', 'GET', 'POST']
end
Dir[File.dirname(__FILE__) + '/controllers/*.rb'].each {|file| require file }