Added view contact option

This commit is contained in:
Pinga 2023-11-16 12:55:14 +02:00
parent b91fa31bf3
commit d262c6fbe9
4 changed files with 306 additions and 2 deletions

View file

@ -49,10 +49,11 @@ $app->group('', function ($route) {
$route->get('/contacts', ContactsController::class .':view')->setName('contacts');
$route->map(['GET', 'POST'], '/contact/create', ContactsController::class . ':create')->setName('contactcreate');
$route->get('/contact/{contact}', ContactsController::class . ':viewContact')->setName('viewContact');
$route->get('/hosts', HostsController::class .':view')->setName('hosts');
$route->map(['GET', 'POST'], '/host/create', HostsController::class . ':create')->setName('hostcreate');
$route->get('/host/{domain}', HostsController::class . ':viewHost')->setName('viewHost');
$route->get('/host/{host}', HostsController::class . ':viewHost')->setName('viewHost');
$route->get('/registrars', RegistrarsController::class .':view')->setName('registrars');
$route->map(['GET', 'POST'], '/registrar/create', RegistrarsController::class . ':create')->setName('registrarcreate');