Add some internal joke thing.
This commit is contained in:
parent
f82cc96e7f
commit
1231648035
@ -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")
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user