From ca4514ac276827ffdb99a1cbf3b27633e73656f2 Mon Sep 17 00:00:00 2001 From: Andinus Date: Sat, 5 Feb 2022 09:39:29 +0530 Subject: Update fetch URLs Quick fix in `service.raku' -- Probably should just use the normal router mode instead of this. --- server/service.raku | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'server') 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 { -- cgit 1.4.1-2-gfad0