orion

A minimal, rails-esque routing library router
1.1.0 released
obsidian/orion
122 8 3
Obsidian Crystal

Orion

Build Status Dependency Status GitHub release

A minimal, rails'esk routing library for HTTP::Server.

Orion allows you to easily add routes, groups, and middleware in order to construct your application's routing layer.

Purpose

The purpose of the Orion router is to connect URLs to code. It provides a flexible and comprehensive DSL that will allow you to cover a variety of use cases. In addition, Orion will also generate a series of helpers to easily reference the defined paths within your application.

Installation

Add this to your application's shard.yml:

dependencies:
  orion:
    github: obsidian/orion

... and require Orion in your project.

require "orion"

Usage

For a comprehensive guide please see the github page or take a look at what you can define inside the .router block by looking at some of the API's:

  • Orion::Router::Resources
  • Orion::Router::Routes
  • Orion::Router::Scope
  • Orion::Router::Middleware
  • Orion::Router::Concerns
  • Orion::Router::Constraints
router MyApplicationRouter do
  # ...
end
orion:
  github: obsidian/orion
  version: ~> 1.1.0
License MIT
Crystal 0.24.1

Authors

Dependencies 3

  • inflector ~> 0.1.8
    {'github' => 'phoffer/inflector.cr', 'version' => '~> 0.1.8'}
  • mime-types 0.12.3
    {'github' => 'jwaldrip/mime-types.cr', 'version' => '0.12.3'}
  • oak 1.0.2
    {'github' => 'obsidian/oak', 'version' => '1.0.2'}

Development Dependencies 0

Dependents 1

Last synced .
search fire star recently