mirror of
https://github.com/the-programmers-hangout/Hermes.git
synced 2026-09-04 09:15:59 +02:00
27 lines
644 B
PHP
27 lines
644 B
PHP
<?php
|
|
|
|
namespace App;
|
|
|
|
use Illuminate\Support\Facades\Route;
|
|
use Laracord\Laracord;
|
|
|
|
class Bot extends Laracord
|
|
{
|
|
/**
|
|
* The HTTP routes.
|
|
*/
|
|
public function routes(): void
|
|
{
|
|
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(),
|
|
// ]));
|
|
});
|
|
}
|
|
}
|