1
0
mirror of https://github.com/mgerb/mywebsite synced 2026-01-10 09:52:51 +00:00

merging back into one repo - not going to host on app engine - google won't allow me to connect to external database

This commit is contained in:
2016-08-28 22:40:30 -05:00
parent 29448c29a8
commit 93464d9a66
11 changed files with 803 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
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 discord
func VPNRedirect(w http.ResponseWriter, r *http.Request, _ httprouter.Params) {
http.Redirect(w, r, "https://mitchel.io: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)
}