Skip to content

Commit

Permalink
Temporary debug route for CDN headers
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Apr 22, 2024
1 parent 6c20352 commit e224ae4
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions site/config/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@
}

$page = page('docs/cookbook')->grandChildren()->findBy('slug', $slug);

if (!$page) {
$page = page('docs/quicktips/' . $slug);
}
Expand All @@ -289,6 +289,12 @@
return page('docs/quicktips')->render(['tag' => $tag]);
}
],
[
'pattern' => 'cdn/info',
'action' => function () {
return kirby()->request()->headers();
}
],
[
'pattern' => 'docs/guide/(:any)/(:any)',
'action' => function ($parent, $slug) {
Expand All @@ -303,7 +309,7 @@
if ($page = page('docs/guide')->grandChildren()->find($slug)) {
return $page;
}

$this->next();
}
]
Expand Down

0 comments on commit e224ae4

Please sign in to comment.