PHP Classes

File: demos/config/routes.php

Recommend this page to a friend!
  Classes of Francesco Danti   ATK4 FastRoute   demos/config/routes.php   Download  
File: demos/config/routes.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: ATK4 FastRoute
Process HTTP requests using configured routes
Author: By
Last change:
Date: 4 years ago
Size: 672 bytes
 

Contents

Class file image Download
<?php

return [
    [
       
'/test',
        [
'GET', 'POST'],
        [
'StandardClass', 'handleRequest'],
    ],
    [
       
'/testStatic',
        [
'GET', 'POST'],
        [
'StandardClass', 'staticHandleRequest'],
    ],
    [
       
'/test2',
        [
'GET', 'POST'],
        [
'ATKView', ['text' => 'it works']],
    ],
    [
       
'/callable',
        [
'GET', 'POST'],
        [
'handleWithFunction'],
    ],
    [
       
'/test-parameters/{id:\d+}/{title}',
        [
'GET'],
        [
'StandardClass', 'HandleRequest'],
    ],
    [
       
'/test-parameters-static/{id:\d+}/{title}',
        [
'GET'],
        [
'StandardClass', 'staticHandleRequest'],
    ],
];