orion~obsidian-framework

1.0.0-beta1 released

This repo seems to be no longer available at obsidian-framework/orion.

Git synchronization failed . Last successful sync was .

Help find it again! … or have it archived.

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:
  gitlab: obsidian-framework/orion
  version: ~> 1.0.0-beta1
License MIT
Crystal 0.23.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 0

Similar shards

Last synced .
search fire star recently