Sha256: b739c4638a65e4fbfc11e6b16ffc8f5f686683b9e0a977c66f6fee855a376bd3

Contents?: true

Size: 425 Bytes

Versions: 3

Compression:

Stored size: 425 Bytes

Contents

module Lanes
    API.routes.draw do

        put Lanes.config.api_path + '/system-settings.json',
            &SystemSettings.update_handler

        post Lanes.config.api_path + '/asset',
             &API::Handlers::Asset.saver

        get Lanes.config.api_path + '/asset/*',
            &API::Handlers::Asset.getter

        Extensions.each(reversed: true) do | ext |
            ext.route(self)
        end

    end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lanes-0.5.6 lib/lanes/api/default_routes.rb
lanes-0.5.5 lib/lanes/api/default_routes.rb
lanes-0.5.0 lib/lanes/api/default_routes.rb