From 9e2cbb1c40eebdd3d454dcb06d15791e568364e1 Mon Sep 17 00:00:00 2001 From: Angular2guy Date: Tue, 2 Apr 2024 18:06:41 +0200 Subject: [PATCH] fix: controller --- backend/pkd/controller/basecontroller.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/pkd/controller/basecontroller.go b/backend/pkd/controller/basecontroller.go index 8a30d83..7835107 100644 --- a/backend/pkd/controller/basecontroller.go +++ b/backend/pkd/controller/basecontroller.go @@ -46,7 +46,7 @@ func Start(embeddedFiles fs.FS) { router.POST("/gasstation/search/location", token.CheckToken, searchGasStationLocation) router.GET("/usernotification/new/:useruuid", token.CheckToken, getNewUserNotifications) router.GET("/usernotification/current/:useruuid", token.CheckToken, getCurrentUserNotifications) - router.GET("/postcode/countydata/:id", getCountyDataByIdWithTimeSlots) + router.GET("/postcode/countydata/:id", token.CheckToken, getCountyDataByIdWithTimeSlots) myPort := strings.TrimSpace(os.Getenv("PORT")) portNum, err := strconv.ParseInt(myPort, 10, 0)