Skip to content

Add StaticRouter #53

Description

@vladfaust

Define static routes in compilation time:

# It's just a Handler
class MyStaticRouter
  include Onyx::REST::StaticRouter

  draw do
    get "/" do
      will_be_put_explicitly_into_the_code
    end
  end
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions