forbid now uses path-to-regexp paths.. docs.. rewrite examples

This commit is contained in:
Lloyd Brookes
2015-11-17 11:18:25 +00:00
parent 7a991cc5f7
commit b3de999e4d
11 changed files with 73 additions and 19 deletions

View File

@ -0,0 +1,5 @@
{
"forbid": [
"/admin/*", "*.php"
]
}

View File

@ -0,0 +1 @@
<h1>Forbidden page</h1>

View File

@ -0,0 +1 @@
<h1>A permitted page</h1>

View File

@ -0,0 +1,5 @@
<h1>Forbidden routes</h1>
<p>
Notice you can access <a href="allowed.html">this page</a>, but not <a href="admin/blocked.html">this admin page</a> or <a href="something.php">php file</a>.
</p>

View File

@ -0,0 +1 @@
<?php echo "i'm coding PHP templatez!\n" ?>