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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user