tested mobile version, aded viewport tag
This commit is contained in:
@@ -16,7 +16,6 @@ end
|
||||
|
||||
|
||||
gem "sinatra"
|
||||
|
||||
gem "sinatra-activerecord"
|
||||
gem "json"
|
||||
gem 'puma'
|
||||
|
||||
@@ -7,6 +7,7 @@ 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
|
||||
|
||||
@@ -10,9 +10,6 @@ def prepare_items_for_mass_display(items)
|
||||
])
|
||||
end
|
||||
|
||||
|
||||
|
||||
|
||||
def offset_and_limit_invalid?(offset, limit)
|
||||
offset < 0 or limit <= 0 or limit > 100
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user