Moved all current routes to individual folders which use a class system and inherit from an interface. Moved rest of the files for a better structure and for readability. Each editable cms should have its own folder with a routes class file and data class file

Signed-off-by: rodude123 <rodude123@gmail.com>
This commit is contained in:
2023-06-08 15:10:27 +01:00
parent fb75dd2255
commit a3eb4678f9
26 changed files with 1189 additions and 931 deletions
+20
View File
@@ -0,0 +1,20 @@
<?php
namespace api\blog;
use Slim\App;
class blogRoutes implements \api\utils\routesInterface
{
private blogData $blogData;
public function __construct(App $app)
{
$this->blogData = new blogData();
$this->createRoutes($app);
}
public function createRoutes(App $app): void
{
// TODO: Implement createRoutes() method.
}
}