aboutsummaryrefslogtreecommitdiff
path: root/handler.go
diff options
context:
space:
mode:
authorFuwn <[email protected]>2021-08-24 05:21:17 +0000
committerFuwn <[email protected]>2021-08-24 05:21:17 +0000
commit87ccfc48decdde994cb43a37960fe683f1859447 (patch)
treee0cc3720160b9dbd17deb18becca0482b0f0128d /handler.go
parentfeat(route): create ... createRedirectRoute() (diff)
downloadspace-87ccfc48decdde994cb43a37960fe683f1859447.tar.xz
space-87ccfc48decdde994cb43a37960fe683f1859447.zip
feat(handler): redirect /x/* requests to /proxy
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")
+}