mirror of
https://codeberg.org/vlw/vlw.se.git
synced 2025-09-14 05:13:46 +02:00
fix: enable strict parameter checks for /coffee POST endpoint
This commit is contained in:
parent
85e8e00091
commit
4fe4aca929
1 changed files with 1 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
|||
|
||||
final class POST_Coffee extends API {
|
||||
public function __construct() {
|
||||
parent::__construct(new Ruleset()->POST([
|
||||
parent::__construct(new Ruleset(strict: true)->POST([
|
||||
new Rules(CoffeeTable::DATE_CREATED->value)
|
||||
->type(Type::STRING)
|
||||
->type(Type::NUMBER)
|
||||
|
|
Loading…
Add table
Reference in a new issue