mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender.git
synced 2025-08-07 04:09:15 +02:00
feat:#34 refactored function to intended service, fixed docker files
This commit is contained in:
@@ -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"))
|
||||
|
Reference in New Issue
Block a user