Sha256: dd09b0c2b57befe04ff778379ec18929e93f811c8faefba06102b06d7cf6bbfa
Contents?: true
Size: 331 Bytes
Versions: 4
Compression:
Stored size: 331 Bytes
Contents
require 'sinatra' require_relative '../lib/skeleton/root' server_port = ARGV[0] set :port, server_port File.open("#{Base::ROOT_DIR}/html/port", 'w+') { |f| f.write(server_port) } get '/:file' do send_file "#{Base::ROOT_DIR}/html/#{params[:file]}" end post '/:file' do send_file "#{Base::ROOT_DIR}/html/#{params[:file]}" end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
skeleton-ui-0.1.8 | html/server.rb |
skeleton-ui-0.1.7 | html/server.rb |
skeleton-ui-0.1.6 | html/server.rb |
skeleton-ui-0.1.5 | html/server.rb |