mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2025-08-07 04:09:17 +02: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")
|
token := c.QueryParam("token")
|
||||||
err := db.DeleteFeed(app.Dao(), token)
|
err := db.DeleteFeed(app.Dao(), token)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return c.JSON(http.StatusNotFound, "error", err)
|
return c.JSON(http.StatusNotFound, err)
|
||||||
} else {
|
} else {
|
||||||
return c.JSON(http.StatusOK, "Feed deleted")
|
return c.JSON(http.StatusOK, "Feed deleted")
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user