+ sub generic {
+ for my $thing (@_) {
+ my $pkg = ucfirst $thing;
+ get qr,/$thing/, => $pkg;
+ get qr,/$thing/read, => "${pkg}::Read";
+ get qr,/$thing/$word, => "${pkg}::Entry";
+# post qr,/$thing/$word/create, => "${pkg}::Entry::Create";
+ get qr,/$thing/$word/read, => "${pkg}::Entry::Read";
+# post qr,/$thing/$word/update, => "${pkg}::Entry::Update";
+# post qr,/$thing/$word/delete, => "${pkg}::Entry::Delete";
+ }
+ }
+
+ get qr,/css/$word\.css, => 'CSS';
+ get qr,/js\.js, => 'JS';