Route
class Route
You'll use this class to create a route.
Constants
| METHODS | 
 | 
Properties
| static protected | $vendor | ||
| static protected | $apis | 
Methods
                    __construct($vendor)
        
                                            
                
            No description
                    static 
                
                
                    vendor($vendor)
        
                                            
                
            No description
                    static 
                
                
                    register()
        
                                            
                
            Internal register the route.
                    static 
                
                
                    __callStatic($method, $args)
        
                                            
                
            Magic method to register the route. I mean, a single verb/route.
                    static 
                
                
                    request($methods, $path, $callback, $options = [])
        
                                            
                
            You may use this method to register multiple routes at once.
                    static 
                
                
                    response($data, $status = 200)
        
                                            
                
            Commodity method for the response.
                    static 
                
                
                    responseError($code, $message, $status = 400)
        
                                            
                
            Commodity method for an error response.
Details
        at         line 22
                            
    __construct($vendor)
        
    
    
        at         line 27
                static            
    vendor($vendor)
        
    
    
        at         line 77
                static            
    register()
        
    
    Internal register the route.
        at         line 96
                static            
    __callStatic($method, $args)
        
    
    Magic method to register the route. I mean, a single verb/route.
        at         line 118
                static            
    request($methods, $path, $callback, $options = [])
        
    
    You may use this method to register multiple routes at once.
        at         line 135
                static            
    response($data, $status = 200)
        
    
    Commodity method for the response.
        at         line 143
                static            
    responseError($code, $message, $status = 400)
        
    
    Commodity method for an error response.