Sha256: 48e0f487574365ddb1c60638a01f0323d2abdee76602c10bfce1410c05056350
Contents?: true
Size: 299 Bytes
Versions: 2
Compression:
Stored size: 299 Bytes
Contents
# frozen_string_literal: true $LOAD_PATH.unshift File.expand_path("./lib", __dir__) require 'evt' require 'midori' Fiber.set_scheduler Evt::Scheduler.new class HelloWorldAPI < Midori::API get '/' do 'Ohayou Midori' end end Fiber.schedule do Midori::Runner.new(HelloWorldAPI).start end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
midori.rb-0.9.0 | example.rb |
midori.rb-0.8.0 | example.rb |