fix:#7 fixed main changes

This commit is contained in:
Elmar Kresse
2024-06-10 21:06:58 +02:00
parent 813dd5085f
commit 5e8365f3c5
2 changed files with 2 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ import (
"net/http"
)
// add routes to the app instance for the data-manager ical service
// AddFeedRoutes add routes to the app instance for the data-manager ical service
// with golang fiber
func AddFeedRoutes(app *fiber.App) {
@@ -34,7 +34,7 @@ func AddFeedRoutes(app *fiber.App) {
// Define a route for the POST method on the root path '/api/feed'
app.Post("/api/feed", func(c fiber.Ctx) error {
modules := []model.FeedCollection{}
var modules []model.FeedCollection
//obtain the body of the request
err := json.Unmarshal(c.Body(), &modules)
if err != nil {