PHP Classes

File: tests/app/routes/api.php

Recommend this page to a friend!
  Packages of Wolfy-J   spiral   tests/app/routes/api.php   Download  
File: tests/app/routes/api.php
Role: Example script
Content type: text/plain
Description: Example script
Class: spiral
Modular Web application development framework
Author: By
Last change:
Date: 2 months ago
Size: 430 bytes
 

Contents

Class file image Download
<?php

declare(strict_types=1);

use
Spiral\Router\Loader\Configurator\RoutingConfigurator;

return static function (
RoutingConfigurator $routes): void {
   
$routes->add('test-import-index', '/test-import')->callable(static fn() => null);
   
$routes->add('test-import-posts', '/test-import/posts')->callable(static fn() => null);
   
$routes->add('test-import-post', '/test-import/post/<id>')->callable(static fn() => null);
};