Add initial project structure and configurations
- Set up project directories including app structure. - Add IntelliJ IDEA project files and configurations. - Implement basic PHP router for request handling. - Provide reference files for features, IPs, and documentation. - Include license and copyright files.
This commit is contained in:
19
public/routes.php
Normal file
19
public/routes.php
Normal file
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
/*
|
||||
* Copyright (c) 2025. Brusegan Samuele, Davanzo Andrea
|
||||
* Questo file fa parte di VeyonCtrl ed è rilasciato
|
||||
* sotto la licenza MIT. Vedere il file LICENSE per i dettagli.
|
||||
*/
|
||||
global $router;
|
||||
|
||||
// === API ===
|
||||
$router->add('/api' , 'ApiController', 'classeviva');
|
||||
$router->add('/login' , 'ApiController', 'login');
|
||||
|
||||
// === Pagine ===
|
||||
$router->add('/' , 'Controller', 'index');
|
||||
$router->add('/grades' , 'Controller', 'grades');
|
||||
$router->add('/settings' , 'Controller', 'settings');
|
||||
$router->add('/account' , 'Controller', 'account');
|
||||
$router->add('/subjects' , 'Controller', 'subjects');
|
||||
$router->add('/agenda' , 'Controller', 'agenda');
|
||||
Reference in New Issue
Block a user