Module: Roda::RodaPlugins::RestApi

Defined in:
lib/roda/plugins/rest_api.rb

Defined Under Namespace

Modules: RequestMethods Classes: Resource

Constant Summary collapse

APPLICATION_JSON =
'application/json'.freeze
SINGLETON_ROUTES =
%i{ show create update destroy edit new }.freeze

Class Method Summary collapse

Class Method Details

.load_dependencies(app, _opts = {}) ⇒ Object



9
10
11
12
13
# File 'lib/roda/plugins/rest_api.rb', line 9

def self.load_dependencies(app, _opts = {})
	app.plugin :all_verbs
	app.plugin :symbol_matchers
	app.plugin :header_matchers
end