Created
September 30, 2013 12:35
-
-
Save hejrobin/6763160 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class SampleController implements \Brewery\Application\Controller { | |
public function index() {} | |
public function error() {} | |
} | |
// requests kräver konfig i xml | |
class SampleController implements \Brewery\Application\Controller { | |
public function get() {} | |
public deleteUser() {} | |
} | |
# GET /sample/ -> 200 | |
# POST /sample/ -> 405 | |
# GET /sample/user -> 501 (not impl) | |
# DELETE /sample/user -> 200 | |
#om ej finnes skickas istället exception (istället för error-callback). (man ska kunna overrajda status-views sen) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment