I did something else, analog to how I see it on Svelte, but I don't know if it's what you wanted. Made a PR.

Reply to this note

Please Login to reply.

Discussion

the handler looks right... ah, i see you added one. ok i'll merge that and see what it looks like

oh, nah, http.ServeFile is looking at the local directory. so there wasn't a need to put the file into the repo. i mean

a hard coded one, the best way would have been to use the "embed" library and pull it into a source file into a []byte variable

i think what i need to do to make it work is copy that icon into the same path under the static directory on the server, let's see if this works

hm doesn't seem like it worked, but it's at least getting the correct json anyhow.

i'll look into it tomorrow anyhow. i think the issue is that it needs to be part of the same handler that delivers the json which is a virtual path not an actual file path, what you put in there it looks like it serves from a different location but i can't see it on https://mleku.dev/favicon.ico or https://mleku.dev/static/favicon.ico so i assume the handler is expecting a different path than what jumble is requesting

what i'll do later is write a proper route for the /favicon.ico and have it fetch it from the same location as the file, i put it there but it isn't loading from the webserver correctly

Yeah, sorry. My first attempt at go. 🙈