Import.php
30 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @copyright © TMS-Plugins. All rights reserved. |
| 4 | * @licence See COPYING.md for license details. |
| 5 | */ |
| 6 | |
| 7 | namespace AmeliaBooking\Infrastructure\Routes\Import; |
| 8 | |
| 9 | use AmeliaBooking\Application\Controller\Import\ImportCustomersController; |
| 10 | use Slim\App; |
| 11 | |
| 12 | /** |
| 13 | * |
| 14 | * Class Import |
| 15 | * |
| 16 | * @package AmeliaBooking\Infrastructure\Routes\Import |
| 17 | */ |
| 18 | class Import |
| 19 | { |
| 20 | /** |
| 21 | * @param App $app |
| 22 | * |
| 23 | * @throws \InvalidArgumentException |
| 24 | */ |
| 25 | public static function routes(App $app) |
| 26 | { |
| 27 | $app->post('/import/customers', ImportCustomersController::class)->setOutputBuffering(false); |
| 28 | } |
| 29 | } |
| 30 |