mirror of
https://github.com/danpros/htmly.git
synced 2026-04-19 12:06:22 +05:30
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:
parent
f7502b95b5
commit
fa77cc805b
3 changed files with 79 additions and 17 deletions
|
|
@ -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) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue