Add some internal joke thing.

This commit is contained in:
A. Svensson 2016-06-17 21:34:26 +02:00
parent f82cc96e7f
commit 1231648035

View File

@ -82,6 +82,8 @@ func (i *Instance) Serve(addr string) error {
//i.router.GET("/stats", page_stats) //i.router.GET("/stats", page_stats)
i.router.GET("/about", i.page_about) i.router.GET("/about", i.page_about)
i.router.GET("/r/ver", i.page_apollo)
return i.router.Run(i.addr) return i.router.Run(i.addr)
} }
@ -130,3 +132,8 @@ func (i *Instance) page_server(c *gin.Context) {
"weekdayavg": weekdayavg, "weekdayavg": weekdayavg,
}) })
} }
func (i *Instance) page_apollo(c *gin.Context) {
// Go away, this it not an easter egg.
c.Redirect(http.StatusFound, "byond://192.95.55.67:3333")
}