PHP Classes

File: routes/health_routes.php

Recommend this page to a friend!
  Classes of Leonardo Di Sarli   Ala PHP API Micro-Framework   routes/health_routes.php   Download  
File: routes/health_routes.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Ala PHP API Micro-Framework
Generate base code for API using a query builder
Author: By
Last change:
Date: 1 year ago
Size: 301 bytes
 

Contents

Class file image Download
<?php

$router
->get(
   
'/',
    [
       
'uses' => 'HealthApiController@process',
    ]
);

$router->get(
   
'/health',
    [
       
'uses' => 'HealthApiController@process',
    ]
);

$router->get(
   
'/health/key',
    function () {
        return \
Illuminate\Support\Str::random(32);
    }
);