Module: Rapid::Server::Routing::Model

Defined in:
lib/ury_rapid/server/routing/model.rb

Overview

Routes for serving the Rapid model

Depends on the Server::Helpers::Model helper set.

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object

Registers the module routes


9
10
11
12
13
14
15
16
# File 'lib/ury_rapid/server/routing/model.rb', line 9

def self.registered(app)
  # These routes match all of the server's URL namespace that hasn't
  # been reserved for other purposes.
  app.get('/*/?') { get }
  app.put('/*/?') { put }
  app.post('/*/?') { post }
  app.delete('/*/?') { delete }
end