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:
Vendored
+20
@@ -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.
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user