<?php

$router->get('/', [OcorrenciaController::class, 'home']);
$router->get('/registrar', [OcorrenciaController::class, 'create']);
$router->post('/registrar', [OcorrenciaController::class, 'store']);
$router->get('/sucesso', [OcorrenciaController::class, 'success']);

$router->get('/app', [OcorrenciaController::class, 'appHome']);
$router->get('/app/registrar', [OcorrenciaController::class, 'appCreate']);
$router->post('/app/registrar', [OcorrenciaController::class, 'appStore']);
$router->get('/app/sucesso', [OcorrenciaController::class, 'appSuccess']);
$router->get('/app/consultar', [ConsultaController::class, 'appIndex']);
$router->post('/app/consultar', [ConsultaController::class, 'appSearch']);

$router->get('/consultar', [ConsultaController::class, 'index']);
$router->post('/consultar', [ConsultaController::class, 'search']);

$router->get('/login', [AuthController::class, 'loginForm']);
$router->post('/login', [AuthController::class, 'login']);
$router->get('/logout', [AuthController::class, 'logout']);

$router->get('/admin', [DashboardController::class, 'index']);
$router->get('/admin/mapa', [DashboardController::class, 'mapa']);
$router->get('/admin/prefeito', [DashboardController::class, 'prefeito']);
$router->get('/admin/servicos', [ServicoController::class, 'index']);
$router->get('/admin/usuarios', [UsuarioController::class, 'index']);
$router->get('/admin/usuarios/create', [UsuarioController::class, 'create']);
$router->get('/admin/usuarios/edit', [UsuarioController::class, 'edit']);
$router->post('/admin/usuarios/store', [UsuarioController::class, 'store']);
$router->post('/admin/usuarios/update', [UsuarioController::class, 'update']);
$router->get('/admin/servicos/create', [ServicoController::class, 'create']);
$router->get('/admin/servicos/edit', [ServicoController::class, 'edit']);
$router->post('/admin/servicos/store', [ServicoController::class, 'store']);
$router->post('/admin/servicos/update', [ServicoController::class, 'update']);
$router->get('/admin/ocorrencias', [OcorrenciaController::class, 'index']);
$router->get('/admin/ocorrencias/show', [OcorrenciaController::class, 'show']);
$router->post('/admin/ocorrencias/status', [OcorrenciaController::class, 'updateStatus']);
$router->post('/admin/ocorrencias/setor', [OcorrenciaController::class, 'updateSetor']);
