summaryrefslogtreecommitdiff
path: root/internal/server/server.go
diff options
context:
space:
mode:
authormihna123 <mihailonvojinovic@gmail.com>2026-09-04 01:29:39 +0200
committermihna123 <mihailonvojinovic@gmail.com>2026-09-04 01:29:39 +0200
commit668c151379ea1d9ff77505d74f751ed83a8af029 (patch)
treec19ed88cef013e34aea1ada97baff516cfbe2f73 /internal/server/server.go
parent2e227424ba3a5bcc703936c35bcadba8cda0931f (diff)
downloadopenstore-668c151379ea1d9ff77505d74f751ed83a8af029.tar.gz
openstore-668c151379ea1d9ff77505d74f751ed83a8af029.zip
web: serve the stylesheet over a css route
Embed the css directory alongside the templates and serve it with a FileServerFS mounted on GET /css/. The directory name matches the url prefix, so the file resolves without an fs.Sub and there is no error path to handle. Adding js later is the same one line. Cover the route in the handler tests, including that template sources stay unreachable and that the href the home page emits resolves to a file that is actually served.
Diffstat (limited to 'internal/server/server.go')
0 files changed, 0 insertions, 0 deletions