« get me outta code hell

url-spec, web-routes, content: static subdirectories - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/url-spec.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-21 08:50:20 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-21 08:50:20 -0300
commit9c00d5b47d82da80605d78b762777aeb9a972e21 (patch)
treead8354551693f24072f75171b38756154f8d7ded /src/url-spec.js
parentdc318c6db0b92510e8297739f4f6999f24859215 (diff)
url-spec, web-routes, content: static subdirectories
Diffstat (limited to 'src/url-spec.js')
-rw-r--r--src/url-spec.js37
1 files changed, 23 insertions, 14 deletions
diff --git a/src/url-spec.js b/src/url-spec.js
index cafcb0a6..5bc34407 100644
--- a/src/url-spec.js
+++ b/src/url-spec.js
@@ -66,6 +66,29 @@ const urlSpec = {
     paths: genericPaths,
   },
 
+  staticCSS: {
+    prefix: 'static/css/',
+    paths: genericPaths,
+  },
+
+  staticJS: {
+    prefix: 'static/js/',
+    paths: genericPaths,
+  },
+
+  staticMisc: {
+    prefix: 'static/misc/',
+    paths: {
+      ...genericPaths,
+      icon: 'icons.svg#icon-<>',
+    },
+  },
+
+  staticSharedUtil: {
+    prefix: 'static/shared-util/',
+    paths: genericPaths,
+  },
+
   media: {
     prefix: 'media/',
 
@@ -89,20 +112,6 @@ const urlSpec = {
     prefix: 'thumb/',
     paths: genericPaths,
   },
-
-  static: {
-    prefix: 'static/',
-    paths: {
-      ...genericPaths,
-
-      icon: 'icons.svg#icon-<>',
-    },
-  },
-
-  util: {
-    prefix: 'util/',
-    paths: genericPaths,
-  },
 };
 
 // This gets automatically switched in place when working from a baseDirectory,