mirror of
https://github.com/rramiachraf/dumb.git
synced 2025-04-03 21:07:36 +03:00
add proxy to images
This commit is contained in:
parent
f5288a0e1d
commit
ce95d5de3e
3 changed files with 33 additions and 1 deletions
1
main.go
1
main.go
|
@ -24,6 +24,7 @@ func main() {
|
|||
r.Use(securityHeaders)
|
||||
|
||||
r.HandleFunc("/{id}-lyrics", lyricsHandler)
|
||||
r.HandleFunc("/images/{filename}.jpg", proxyHandler)
|
||||
r.PathPrefix("/static/").Handler(http.StripPrefix("/static/", http.FileServer(http.Dir("static"))))
|
||||
|
||||
server := &http.Server{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue