mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2026-01-16 05:02:26 +01:00
fix:#3 json reverted normal error management
This commit is contained in:
@@ -92,7 +92,7 @@ func addFeedRoutes(app *pocketbase.PocketBase) {
|
||||
token := c.QueryParam("token")
|
||||
err := db.DeleteFeed(app.Dao(), token)
|
||||
if err != nil {
|
||||
return c.JSON(http.StatusNotFound, "error", err)
|
||||
return c.JSON(http.StatusNotFound, err)
|
||||
} else {
|
||||
return c.JSON(http.StatusOK, "Feed deleted")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user