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