move yt embed script to its own source file (#9337)

This commit is contained in:
David Buchanan
2025-11-06 18:15:49 +00:00
committed by GitHub
parent 9f98e53541
commit fd14bbfef9
3 changed files with 37 additions and 38 deletions
+1 -1
View File
@@ -223,7 +223,7 @@ func serve(cctx *cli.Context) error {
e.GET("/robots.txt", echo.WrapHandler(staticHandler))
}
e.GET("/iframe/youtube.html", echo.WrapHandler(staticHandler))
e.GET("/iframe/*", echo.WrapHandler(staticHandler))
e.GET("/static/*", echo.WrapHandler(http.StripPrefix("/static/", staticHandler)), func(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
c.Response().Before(func() {