summary refs log tree commit diff stats
path: root/server/service.raku
diff options
context:
space:
mode:
authorAndinus <andinus@nand.sh>2022-02-05 09:39:29 +0530
committerAndinus <andinus@nand.sh>2022-02-05 09:39:29 +0530
commitca4514ac276827ffdb99a1cbf3b27633e73656f2 (patch)
tree0f4651308b4d6af5160ad3b865ee2d2faa9565cd /server/service.raku
parent29e02de7747dc2944328fb6052942e7c590ea7f5 (diff)
downloadvela-main.tar.gz
Update fetch URLs HEAD main
Quick fix in `service.raku' -- Probably should just use the normal
router mode instead of this.
Diffstat (limited to 'server/service.raku')
-rw-r--r--server/service.raku7
1 files changed, 6 insertions, 1 deletions
diff --git a/server/service.raku b/server/service.raku
index 1ccbb85..f209a67 100644
--- a/server/service.raku
+++ b/server/service.raku
@@ -91,7 +91,6 @@ my $application = route {
 
         my $img;
         if "$user-store/images".IO.d {
-            put "huh";
             my @imgs = dir("$user-store/images").grep(*.f);
             if @imgs.elems {
                 $img = @imgs.pick(1).first;
@@ -111,10 +110,16 @@ my $application = route {
     }
 
     # Serving static assets.
+
+    # Quick fix for an issue.
     get -> 'js', *@path { static 'dist/js', @path; }
     get -> 'css', *@path { static 'dist/css', @path; }
     get -> 'img', *@path { static 'dist/img', @path; }
     get -> 'fonts', *@path { static 'dist/fonts', @path; }
+    get -> $x, 'js', *@path { static 'dist/js', @path; }
+    get -> $x, 'css', *@path { static 'dist/css', @path; }
+    get -> $x, 'img', *@path { static 'dist/img', @path; }
+    get -> $x, 'fonts', *@path { static 'dist/fonts', @path; }
 
     # Serve the app on all paths, it'll handle the routing.
     get -> *@path {