mirror of
https://github.com/urbit/shrub.git
synced 2024-11-30 22:15:47 +03:00
link-server-hook: fall back to serving index.html
This commit is contained in:
parent
00a4c91f92
commit
740836348d
@ -174,7 +174,11 @@
|
||||
?+ request-line
|
||||
:: for the default case, try to load file from clay
|
||||
::
|
||||
?~ ext.request-line not-found:gen
|
||||
?~ ext.request-line
|
||||
:: for extension-less requests, always just serve the index.html.
|
||||
:: that way the js can load and figure out how to deal with that route.
|
||||
::
|
||||
$(request-line [[`%html ~[%'~link' 'index']] args.request-line])
|
||||
=/ file=(unit octs)
|
||||
?. ?=([%'~link' *] site.request-line) ~
|
||||
(get-file-at /app/link [t.site u.ext]:request-line)
|
||||
|
Loading…
Reference in New Issue
Block a user