Skip to content

Commit

Permalink
add method not allowed controller
Browse files Browse the repository at this point in the history
  • Loading branch information
rodber committed Jan 7, 2025
1 parent c64f2ff commit bbe9da0
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/Controllers/MethodNotAllowedController.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

/*
* This file is part of Chevere.
*
* (c) Rodolfo Berrios <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

declare(strict_types=1);

namespace Chevere\Http\Controllers;

use Chevere\Http\Attributes\Response;
use Chevere\Http\Controller;
use Chevere\Http\Status;

#[Response(
new Status(405),
)]
final class MethodNotAllowedController extends Controller
{
protected function main(): void
{
}
}

0 comments on commit bbe9da0

Please sign in to comment.