Skip to content

Instantly share code, notes, and snippets.

@pinscript
Created May 9, 2011 14:12
Show Gist options
  • Save pinscript/962581 to your computer and use it in GitHub Desktop.
Save pinscript/962581 to your computer and use it in GitHub Desktop.
<?php
require_once 'outpost.php';
$app = new Outpost;
$app->before(function() {
echo "Running before filter<br /><br />";
});
$app->after(function() {
echo "<br /><br />Running after filter";
});
$app->get('/', function($r) {
echo "<h1>Root page</h1>";
});
$app->get('/:name', function($r) {
echo "<h1>Hello " . $r->name . "</h1>";
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment