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

convert server to use relative imports

This commit is contained in:
2017-01-12 14:51:25 +01:00
parent a68c97fa3c
commit 148721e071
6 changed files with 44 additions and 45 deletions

View File

@@ -5,8 +5,8 @@ import (
"log"
"net/http"
"mywebsite/server/controller"
"mywebsite/server/controller/api"
"../controller"
"../controller/api"
)
func Routes() *httprouter.Router {
@@ -21,7 +21,7 @@ func Routes() *httprouter.Router {
r.GET("/api/sensor/:location/:year", api.HandleSensorByLocationYear)
r.GET("/api/sensor/:location/:year/:monthname", api.HandleSensorByLocationMonth)
r.GET("/api/uniquedates/:location", api.HandleUniqueDates)
r.GET("/discord", controller.DiscordRedirect)
r.GET("/vpn", controller.VPNRedirect)
r.GET("/camera", controller.CameraRedirect)