summaryrefslogtreecommitdiff
path: root/routes.php
diff options
context:
space:
mode:
Diffstat (limited to 'routes.php')
-rw-r--r--routes.php23
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