abstract class Melon::Api::Route

Overview

This class will be the base for all routes

Defined in:

melon/api.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(path, method : String = nil, api : ::Melon::Api.class | Nil = nil, description : String = "", resource : Bool = false) #

[View source]

Instance Method Detail

def api : Melon::Api.class? #

[View source]
def api? #

[View source]
def description : String #

[View source]
def match?(method : String, path : String) #

[View source]
def method : String #

[View source]
def path : String #

[View source]
def resource : Bool #

[View source]