diff --git a/calendar/service.go b/calendar/service.go index 4a9af48..31030c1 100644 --- a/calendar/service.go +++ b/calendar/service.go @@ -40,7 +40,7 @@ func (srv Service) Load() error { calApi.DELETE("", ApiCalDelete) //+-30day - calApi.GET("ics/:cid", func(c *gin.Context) { + server.Server.GET("ics/:cid", func(c *gin.Context) { cid := c.Param("cid") ics, err := ICS(cid, time.Now().Add(time.Hour*-720),