summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-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 {