feat(bulk-api-tester): add shareable visual comparison studio with full-view interactive slider, side-by-side, and gallery
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user