Sha256: c8120e7c7e79ea99ecd89fa7a2e0a0ce4cf05fe0c8f843e6f95e64a4dc06cb21
Contents?: true
Size: 907 Bytes
Versions: 3
Compression:
Stored size: 907 Bytes
Contents
require_relative "handlers/asset.rb" module Lanes API.routes.draw do # WS endpoint must come first get Lanes.config.api_path + '/ws' do API::Cable.handle_request(request) end Extensions.each(reversed: true) do | ext | ext.route(self) end put Lanes.config.api_path + '/lanes/system-settings.json', &SystemSettings.update_handler get Lanes.config.api_path + '/lanes/system-settings.json', &SystemSettings.get_handler post Lanes.config.api_path + '/asset', &API::Handlers::Asset.saver get Lanes.config.api_path + '/asset/*', &API::Handlers::Asset.getter post Lanes.config.api_path + '/dev-file-change.json' do API::PubSub.publish("file-change", data) "OK" end end API.set_root_view :lanes_root_view end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
lanes-0.8.2 | lib/lanes/api/default_routes.rb |
lanes-0.8.1 | lib/lanes/api/default_routes.rb |
lanes-0.8.0 | lib/lanes/api/default_routes.rb |