Skip to content

Instantly share code, notes, and snippets.

@kolyadin
Created July 15, 2014 08:42
Show Gist options
  • Save kolyadin/133a24f27088beb9eb66 to your computer and use it in GitHub Desktop.
Save kolyadin/133a24f27088beb9eb66 to your computer and use it in GitHub Desktop.
$this
->getSlim()
->get('/archive(/:year(/:month(/:day)))', [$this, 'postsArchive'])
->conditions([
'year' => '2[0-9]{3}',
'month' => '[0-9]+',
'day' => '[0-9]+'
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment