Define POST or GET for a route
Taking out the comma after POST seems to work


Correct.  A common is only needed if you want to allow multiple HTTP methods like POST,PUT.

Here's the Yii documentation on the topic: https://www.yiiframework.com/doc/guide/2.0/en/runtime-routing#http-methods