index/src/Http/Routing/HttpPatch.php

19 lines
401 B
PHP

<?php
// HttpPatch.php
// Created: 2024-03-28
// Updated: 2024-03-28
namespace Index\Http\Routing;
use Attribute;
/**
* Provides an attribute for marking methods in a class as a POST route.
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
class HttpPatch extends HttpRoute {
public function __construct(string $path) {
parent::__construct('PATCH', $path);
}
}