PHP Classes

File: bootstrap/list_config.php

Recommend this page to a friend!
  Classes of Leonardo Di Sarli   Ala PHP API Micro-Framework   bootstrap/list_config.php   Download  
File: bootstrap/list_config.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Ala PHP API Micro-Framework
Generate base code for API using a query builder
Author: By
Last change:
Date: 6 months ago
Size: 608 bytes
 

Contents

Class file image Download
<?php

require __DIR__.'/list_routes.php';

$listConfigs = [
    [
       
'middleware' => [],
       
'routes' => [
           
'App\Domains\Health\Http\Controllers' => 'health',
        ],
    ],
    [
       
'middleware' => [
           
'start',
           
'validator',
        ],
       
'routes' => [
           
'App\Domains\Auth\Http\Controllers' => 'auth',
        ],
    ],
    [
       
'middleware' => [
           
'auth',
           
'start',
           
'suffix',
           
'validator',
           
'filters',
           
'parameter',
        ],
       
'routes' => $listRoutes,
    ],
];