Skip to content

Commit

Permalink
refactor: simplify import route php script with composer
Browse files Browse the repository at this point in the history
  • Loading branch information
FarrelAD committed Dec 11, 2024
1 parent 1d58b07 commit 4c4474a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
"App\\": "app/"
},
"files": [
"app/config/config.php"
"app/config/config.php",
"app/routes/web.php",
"app/routes/api.php"
]
},
"require": {
Expand Down
3 changes: 0 additions & 3 deletions public/index.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<?php

require_once __DIR__ . '/../app/routes/web.php';
require_once __DIR__ . '/../app/routes/api.php';

use App\Core\Router;
use Dotenv\Dotenv;

Expand Down

0 comments on commit 4c4474a

Please sign in to comment.