src/main/php/routing/Routing.php
public function onPost(string $path, $target): ConfigurableRoute
    {
        return $this->addRoute(new Route($path, $target, 'POST'));
    }
public function onPost(string $path, $target): ConfigurableRoute
    {
        return $this->addRoute(new Route($path, $target, 'POST'));
    }
public function onPost ( string $ path , $ target ) : ConfigurableRoute { return $ this -> addRoute ( new Route ( $ path , $ target , 'POST' ) ) ; }
reply with given class or callable for POST request on given path

@param   string                                   $path    path this route is applicable for
@param   string|callable|\stubbles\webapp\Target  $target  code to be executed when the route is active
@return  \stubbles\webapp\routing\ConfigurableRoute
reply with given class or callable for POST request on given path