Skip to content

Instantly share code, notes, and snippets.

@hejrobin
Created September 30, 2013 12:35
Show Gist options
  • Save hejrobin/6763160 to your computer and use it in GitHub Desktop.
Save hejrobin/6763160 to your computer and use it in GitHub Desktop.
<?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