Class: SportDb::Service::Server
- Inherits:
-
Sinatra::Base
- Object
- Sinatra::Base
- SportDb::Service::Server
- Includes:
- Model
- Defined in:
- lib/sportdb/service/server.rb
Constant Summary collapse
- PUBLIC_FOLDER =
"#{SportDb::Service.root}/lib/sportdb/service/public"
- VIEWS_FOLDER =
"#{SportDb::Service.root}/lib/sportdb/service/views"
Constants included from Model
Model::City, Model::Continent, Model::Country, Model::Prop, Model::Region
Instance Method Summary collapse
Instance Method Details
#path_prefix ⇒ Object
34 35 36 |
# File 'lib/sportdb/service/server.rb', line 34 def path_prefix request.env['SCRIPT_NAME'] end |