From 87ccfc48decdde994cb43a37960fe683f1859447 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Tue, 24 Aug 2021 05:21:17 +0000 Subject: feat(handler): redirect /x/* requests to /proxy --- handler.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'handler.go') diff --git a/handler.go b/handler.go index c0d3e96..2975b0f 100644 --- a/handler.go +++ b/handler.go @@ -7,6 +7,7 @@ func handle() { routes() errors() meta() + redirect() } func routes() { @@ -31,3 +32,7 @@ func errors() { func meta() { createFileRoute("/favicon.txt", "favicon.txt") } + +func redirect() { + createRedirectRoute("/x/*", "/proxy") +} -- cgit v1.2.3