Settings.php
34 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\Settings; |
| 9 | |
| 10 | use AmeliaBooking\Application\Controller\Settings\GetSettingsController; |
| 11 | use AmeliaBooking\Application\Controller\Settings\UpdateSettingsCategoriesController; |
| 12 | use AmeliaBooking\Application\Controller\Settings\UpdateSettingsController; |
| 13 | use Slim\App; |
| 14 | |
| 15 | /** |
| 16 | * Class Settings |
| 17 | * |
| 18 | * @package AmeliaBooking\Infrastructure\Routes\Settings |
| 19 | */ |
| 20 | class Settings |
| 21 | { |
| 22 | /** |
| 23 | * @param App $app |
| 24 | */ |
| 25 | public static function routes(App $app) |
| 26 | { |
| 27 | $app->get('/settings', GetSettingsController::class); |
| 28 | |
| 29 | $app->post('/settings', UpdateSettingsController::class); |
| 30 | |
| 31 | $app->post('/settings/categories', UpdateSettingsCategoriesController::class); |
| 32 | } |
| 33 | } |
| 34 |