diff options
| author | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-05-15 18:15:37 +0300 |
|---|---|---|
| committer | Geo Halkiadakis <gchalkiadakis@sklavenitis.co.gr> | 2023-05-15 18:15:37 +0300 |
| commit | 59cd40235bf4746a119421609b25d7e9b7f65f83 (patch) | |
| tree | 35a4929d59ed87b97219ea992e4cbcdc994a78d5 /public/app/routes/api.php | |
| parent | 0d983359abb511f75aa5f0b2b498b97728eb25a3 (diff) | |
| download | gyraf1gov-59cd40235bf4746a119421609b25d7e9b7f65f83.tar.gz gyraf1gov-59cd40235bf4746a119421609b25d7e9b7f65f83.tar.bz2 gyraf1gov-59cd40235bf4746a119421609b25d7e9b7f65f83.zip | |
refactoring framework defaults
Diffstat (limited to 'public/app/routes/api.php')
| -rw-r--r-- | public/app/routes/api.php | 46 |
1 files changed, 21 insertions, 25 deletions
diff --git a/public/app/routes/api.php b/public/app/routes/api.php index 94ae2a6..dd0fecf 100644 --- a/public/app/routes/api.php +++ b/public/app/routes/api.php @@ -12,33 +12,29 @@ use app\controllers\api\Doc_api; */ -// api: tree of product-categories -Route::add('/api/tree', - function() { Doc_api::tree(); }, - 'get' -); +// depricated: (not needed) // api: database documentation -Route::add('/api/doc', - function() { Doc_api::dbDoc(); }, - 'get' -); - -Route::add('/api/url/([0-9a-zA-Z-_\/]*)', - function($url) { Common_api::category_by_url($url); } -); - -// route: /api/table -Route::add('/api/([0-9a-zA-Z-_]*)', - function($table) { Common_api::table($table); }, - 'get' -); - -// route: /api/table/{id} -Route::add('/api/([0-9a-zA-Z-_]*)/([0-9]*)', - function($table, $id) { Common_api::record($table, $id); }, - 'get' -); +// Route::add('/api/doc', +// function() { Doc_api::dbDoc(); }, +// 'get' +// ); +// +// Route::add('/api/url/([0-9a-zA-Z-_\/]*)', +// function($url) { Common_api::category_by_url($url); } +// ); +// +// // route: /api/table +// Route::add('/api/([0-9a-zA-Z-_]*)', +// function($table) { Common_api::table($table); }, +// 'get' +// ); +// +// // route: /api/table/{id} +// Route::add('/api/([0-9a-zA-Z-_]*)/([0-9]*)', +// function($table, $id) { Common_api::record($table, $id); }, +// 'get' +// ); |
