If my intention si to code a route that accepts a POST at whateverurl/streams
, should I use this pattern?
[
'pattern' => 'streams',
'method' => 'post',
'action' => function () {
}
],
I assume that to be a relative streams
after any url, such as localhost/kirbysiterootfolder/whatever/more/streams
And that using…
[
'pattern' => '/streams',
'method' => 'post',
'action' => function () {
}
],
…would make it absolute to base url, so always localhost/kirbysiterootfolder/streams
Is that correct ?
Thank you