feat(bulk-api-tester): add shareable visual comparison studio with full-view interactive slider, side-by-side, and gallery

This commit is contained in:
2026-10-28 13:45:26 +05:30
parent 1bcc0d5dda
commit ad48d28310
7 changed files with 2077 additions and 2 deletions
+8
View File
@@ -661,6 +661,14 @@ func NewRouter(pm *ProcessManager) http.Handler {
http.Redirect(w, req, "/docs/", http.StatusTemporaryRedirect)
})
// Route /compare to /tool/bulk-api-tester/compare
r.Get("/compare", func(w http.ResponseWriter, req *http.Request) {
http.Redirect(w, req, "/tool/bulk-api-tester/compare", http.StatusTemporaryRedirect)
})
r.Get("/compare/*", func(w http.ResponseWriter, req *http.Request) {
http.Redirect(w, req, "/tool/bulk-api-tester"+req.URL.Path, http.StatusTemporaryRedirect)
})
// Special custom domain routing for Image Hoster (/hoster -> image-hoster:/files)
r.Route("/hoster", func(r chi.Router) {
r.Handle("/*", http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {