Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 37 lines (32 sloc) 502 Bytes
<?php
namespace App\Controller;
class ExampleController
{
/**
* GET /example
*
* @return array
*/
public function cgetAction()
{
return [ 'foo' => 'bar' ];
}
/**
* GET /example/123
*
* @return array
*/
public function getAction($id)
{
return [ 'id' => $id ];
}
/**
* PUT /example/123
*
* @return array
*/
public function putAction($id)
{
return [ 'id' => $id ];
}
}
You can’t perform that action at this time.