diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2024-01-31 06:11:00 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2024-01-31 20:45:40 +0300 |
commit | c0dc531ebefd8912819f3b6c8bda1fed3c7e750c (patch) | |
tree | 2c75aa9df182260aef09faf4befd81a4c2b9c5e2 /routes.php | |
parent | 48d688cdf7f9eae1bf11b8a6f0e5b98687c604cb (diff) |
make it simple, but not simpler
Diffstat (limited to 'routes.php')
-rw-r--r-- | routes.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/routes.php b/routes.php new file mode 100644 index 0000000..8cda1bb --- /dev/null +++ b/routes.php @@ -0,0 +1,23 @@ +<?php + +return [ + 'Main' => [ + '/' => 'index', + 'contacts/' => 'contacts', + 'projects.html' => 'projects', + 'blog/(\d+)/' => 'post_id id=$(1)', + 'feed.rss' => 'rss', + 'rss/' => 'rss', + '([a-z0-9-]+)/' => 'auto name=$(1)' + ], + 'Admin' => [ + 'admin/' => 'index', + 'admin/{login,logout,log}/' => '${1}', + '([a-z0-9-]+)/{delete,edit}/' => 'auto_${1} short_name=$(1)', + '([a-z0-9-]+)/create/' => 'page_add short_name=$(1)', + 'write/' => 'post_add', + 'admin/markdown-preview.ajax' => 'ajax_md_preview', + 'uploads/' => 'uploads', + 'uploads/{edit_note,delete}/(\d+)/' => 'upload_${1} id=$(1)' + ], +];
\ No newline at end of file |