post('/api/login', [$this, 'login']); $router->get('/api/login', [$this, 'login']); } public function login() { } }