123456789101112131415161718192021222324252627282930313233343536373839 |
- if File.exist?(File.join(__dir__,'..','lib','cpee-frames','implementation.rb'))
- require_relative File.join(__dir__,'..','lib','cpee-frames','implementation')
- else
- require 'cpee-frames/implementation'
- end
- options = {
- :host => 'localhost',
- :port => 8305,
- :secure => false
- }
- Riddl::Server.new(CPEE::Frames::SERVER, options) do
- accessible_description true
- cross_site_xhr true
- @riddl_opts[:data_dir] ||= File.join(__dir__,'data')
- use CPEE::Frames::implementation(@riddl_opts)
- end.loop!
|