aboutsummaryrefslogtreecommitdiff
path: root/handler.go
diff options
context:
space:
mode:
Diffstat (limited to 'handler.go')
-rw-r--r--handler.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/handler.go b/handler.go
index 4cd9c27..99a7a2f 100644
--- a/handler.go
+++ b/handler.go
@@ -7,6 +7,7 @@ func handle() {
routes()
errors()
meta()
+ redirect()
}
func routes() {
@@ -33,3 +34,7 @@ func meta() {
createFileRoute("/favicon.ico", "favicon.ico")
createFileRoute("/robots.txt", "robots.txt")
}
+
+func redirect() {
+ createRedirectRoute("/x/*", "/proxy")
+}