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 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")
+}