feat:#34 refactored function to intended service, fixed docker files

This commit is contained in:
Elmar Kresse
2024-06-10 16:57:40 +02:00
parent cb76b5c188
commit 2d7701b0c9
96 changed files with 212 additions and 79 deletions

View File

@@ -19,11 +19,12 @@ package main
import (
"github.com/gofiber/fiber/v3"
"github.com/gofiber/fiber/v3/log"
"github.com/gofiber/fiber/v3/middleware/logger"
"htwkalender-ical/service"
)
// main function for the ical service
// uses rest api to get the data from the backend
// uses rest api to get the data from the data-manager
// exposes rest api endpoints with fiber to serve the data for clients
func main() {
@@ -38,7 +39,9 @@ func main() {
RequestMethods: append(fiber.DefaultMethods[:], webdavRequestMethods...),
})
// Add routes to the app instance for the backend ical service
app.Use(logger.New())
// Add routes to the app instance for the data-manager ical service
service.AddFeedRoutes(app)
log.Fatal(app.Listen(":8091"))