Skip to content

Commit

Permalink
馃敡 Change auth middleware to api (#5)
Browse files Browse the repository at this point in the history
馃敡 Add `web` middleware example
  • Loading branch information
Log1x committed Mar 27, 2024
1 parent 87380a8 commit 04675db
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions app/Bot.php
Expand Up @@ -12,8 +12,12 @@ class Bot extends Laracord
*/
public function routes(): void
{
Route::middleware('auth')->group(function () {
// Route::get('/', fn () => collect($this->registeredCommands)->map(fn ($command) => [
Route::middleware('web')->group(function () {
// Route::get('/', fn () => 'Hello world!');
});

Route::middleware('api')->group(function () {
// Route::get('/commands', fn () => collect($this->registeredCommands)->map(fn ($command) => [
// 'signature' => $command->getSignature(),
// 'description' => $command->getDescription(),
// ]));
Expand Down

0 comments on commit 04675db

Please sign in to comment.