Skip to content

Commit

Permalink
Merge pull request #43 from NotFoundNL/develop
Browse files Browse the repository at this point in the history
feat: API Routes
  • Loading branch information
64knl committed Jul 4, 2023
2 parents 05c89ad + 08abb6a commit 8b95d77
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"siteboss-framework"
],
"homepage": "https://github.com/notfoundnl/siteboss-framework",
"license": "MIT",
"license": "AGPL-3.0-or-later",
"authors": [
{
"name": "NotFound Digital Creativity",
Expand Down
7 changes: 7 additions & 0 deletions src/Providers/RouteServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ public function boot()

Route::middleware('web')
->group(base_path('routes/web.php'));

// Optionally load API routes
if (file_exists(base_path('routes/api.php'))) {
Route::middleware('api')
->prefix('api')
->group(base_path('routes/api.php'));
}
});
}

Expand Down

0 comments on commit 8b95d77

Please sign in to comment.