mirror of
https://github.com/mgerb/mywebsite
synced 2026-01-09 01:12:52 +00:00
23 lines
639 B
Go
23 lines
639 B
Go
package controller
|
|
|
|
import (
|
|
"github.com/julienschmidt/httprouter"
|
|
"net/http"
|
|
)
|
|
|
|
// redirects for personal use
|
|
// Redirect to discord
|
|
func DiscordRedirect(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
|
|
http.Redirect(w, r, "https://discordapp.com/invite/0Z2tzxKECEj2BHwj", 301)
|
|
}
|
|
|
|
// Redirect to vpn
|
|
func VPNRedirect(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
|
|
http.Redirect(w, r, "https://mitchellgerber.com:943", 301)
|
|
}
|
|
|
|
// Redirect to security cameras
|
|
func CameraRedirect(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
|
|
http.Redirect(w, r, "http://24.118.44.161:8080/html/", 301)
|
|
}
|