index/src/Http/Routing/HttpPut.php

19 lines
394 B
PHP

<?php
// HttpPut.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 PUT route.
*/
#[Attribute(Attribute::TARGET_METHOD | Attribute::IS_REPEATABLE)]
class HttpPut extends HttpRoute {
public function __construct(string $path) {
parent::__construct('PUT', $path);
}
}