Basic Support for SubPages Ready to use.

Must Add CMS Funktions Add/Edit/delete to it.
if Rename a Static page the subFolder must be renamed as well.
This commit is contained in:
Kanti 2014-08-01 13:23:14 +02:00
commit fa77cc805b
3 changed files with 79 additions and 17 deletions

View file

@ -108,6 +108,24 @@ post('/login', function() {
}
});
get("/:static/:sub/edit", function($static,$sub){
echo $static,$sub,"edit";
die();
});
post("/:static/:sub/edit", function($static,$sub){
echo $static,$sub,"edit.";
die();
});
get("/:static/:sub/delete", function($static,$sub){
echo $static,$sub,"delete";
die();
});
post("/:static/:sub/delete", function($static,$sub){
echo $static,$sub,"delete.";
die();
});
// The blog post page
get('/:year/:month/:name', function($year, $month, $name) {
@ -1098,6 +1116,14 @@ get('/admin/update/now/:csrf', function($CSRF) {
}
});
get('/:static/add', function($static){
echo $static,"add";
die();
});
post('/:static/add', function($static){
echo $static,"add.";
die();
});
get('/:static/:sub', function($static,$sub) {