Sha256: c0f683cb81e75e84d7f1ea820be738fc3f7d068c345b5f42a3503d9029d8273e
Contents?: true
Size: 291 Bytes
Versions: 1
Compression:
Stored size: 291 Bytes
Contents
# frozen_string_literal: true require 'bundler/setup' require 'preval' require 'sinatra' Preval.enable_all! get '/' do send_file(File.expand_path('index.html', __dir__)) end post '/' do Preval.process(request.body.read || '').tap do |response| halt 422 unless response end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
preval-0.4.1 | docs/server.rb |