Livraison d ela gestion des opérations v0.4.0

This commit is contained in:
d6soft
2025-06-24 13:01:43 +02:00
parent 25c9d5874c
commit 416d648a14
813 changed files with 234012 additions and 73933 deletions

View File

@@ -45,8 +45,41 @@ class Router {
$this->get('entites/postal/:code', ['EntiteController', 'getEntiteByPostalCode']);
$this->put('entites/:id', ['EntiteController', 'updateEntite']);
// Routes opérations
$this->get('operations', ['OperationController', 'getOperations']);
$this->get('operations/:id', ['OperationController', 'getOperationById']);
$this->post('operations', ['OperationController', 'createOperation']);
$this->put('operations/:id', ['OperationController', 'updateOperation']);
$this->delete('operations/:id', ['OperationController', 'deleteOperation']);
// Routes d'export d'opérations
$this->get('operations/:id/export/excel', ['OperationController', 'exportExcel']);
$this->get('operations/:id/export/json', ['OperationController', 'exportJson']);
$this->get('operations/:id/export/full', ['OperationController', 'exportFull']);
$this->get('operations/:id/backups', ['OperationController', 'getBackups']);
$this->get('operations/:id/backups/:backup_id', ['OperationController', 'downloadBackup']);
$this->delete('operations/:id/backups/:backup_id', ['OperationController', 'deleteBackup']);
// Routes passages
$this->get('passages', ['PassageController', 'getPassages']);
$this->get('passages/:id', ['PassageController', 'getPassageById']);
$this->get('passages/operation/:operation_id', ['PassageController', 'getPassagesByOperation']);
$this->post('passages', ['PassageController', 'createPassage']);
$this->put('passages/:id', ['PassageController', 'updatePassage']);
$this->delete('passages/:id', ['PassageController', 'deletePassage']);
// Routes villes
$this->get('villes', ['VilleController', 'searchVillesByPostalCode']);
// Routes fichiers
$this->get('files/browse', ['FileController', 'browse']);
$this->get('files/search', ['FileController', 'search']);
$this->get('files/stats', ['FileController', 'getStats']);
$this->get('files/metadata', ['FileController', 'getMetadata']);
$this->get('files/list/:support/:id', ['FileController', 'listBySupport']);
$this->get('files/info/:id', ['FileController', 'getFileInfo']);
$this->get('files/download/:id', ['FileController', 'download']);
$this->delete('files/:id', ['FileController', 'deleteFile']);
}
public function handle(): void {