struct DppmRestApi::Config::Route

Overview

Matches a request to a series of globs loaded from a config file.

Included Modules

Defined in:

config/route.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(permissions, query_parameters = {} of String => Array(String)) #

[View source]

Instance Method Detail

def match?(parameters : HTTP::Params) #

Returns true if this Route matches the given query parameters. Does not imply a matching access.


[View source]
def permissions : Access #

The permission/access level for this route


[View source]
def permissions=(permissions : Access) #

The permission/access level for this route


[View source]
def query_parameters : Hash(String, Array(String))? #

[View source]
def query_parameters=(query_parameters : Hash(String, Array(String))) #

[View source]