react-logo/backend/config/routes.yaml

31 lines
731 B
YAML
Raw Normal View History

2020-02-04 17:20:39 +01:00
#index:
# path: /
# controller: App\Controller\DefaultController::index
app_home:
path: /
controller: Symfony\Bundle\FrameworkBundle\Controller\RedirectController::urlRedirectAction
defaults:
path: /api/v1
permanent: true
app_api_login:
path: /api/v1/login
methods: ['POST']
controller: App\Controller\ApiController::login
app_api_logout:
path: /api/v1/logout
methods: ['POST']
controller: App\Controller\ApiController::logout
app_api_show_info:
path: /api/v1
methods: ['GET']
controller: App\Controller\ApiController::showVersionInfo
app_api_list_users:
path: /api/v1/users
methods: ['GET']
controller: App\Controller\ApiController::listUsers