src/php/Router.php
public function allowViewMethods(string $object, ...$allowedMethods)
    {
        if (isset($this->viewMethods[$object]) === false) {
            $this->viewMethods[$object] = [];
        }

        foreach ($allowedMethods as $allowedMethod) {
            $this->viewMethods[$object][$allowedMethod] = true;
        }
    }
public function allowViewMethods(string $object, ...$allowedMethods)
    {
        if (isset($this->viewMethods[$object]) === false) {
            $this->viewMethods[$object] = [];
        }

        foreach ($allowedMethods as $allowedMethod) {
            $this->viewMethods[$object][$allowedMethod] = true;
        }
    }
Adds allowed view methods for an object

@return null