index/src/Http/Routing/HttpPost.php

16 lines
316 B
PHP

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