Compare commits
3 Commits
refactor/s
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| a47497f822 | |||
| 25ac7f20ad | |||
| 35c1d3da1a |
@@ -5,6 +5,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"mal/internal/domain"
|
"mal/internal/domain"
|
||||||
"mal/pkg/net/proxytransport"
|
"mal/pkg/net/proxytransport"
|
||||||
|
"maps"
|
||||||
"net/http"
|
"net/http"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
@@ -72,9 +73,7 @@ func (h *PlaybackHandler) HandleWatchPage(c *gin.Context) {
|
|||||||
"User": user,
|
"User": user,
|
||||||
"CurrentPath": c.Request.URL.Path,
|
"CurrentPath": c.Request.URL.Path,
|
||||||
}
|
}
|
||||||
for k, v := range data {
|
maps.Copy(responseData, data)
|
||||||
responseData[k] = v
|
|
||||||
}
|
|
||||||
|
|
||||||
c.HTML(http.StatusOK, "watch.gohtml", responseData)
|
c.HTML(http.StatusOK, "watch.gohtml", responseData)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user