refactoring and update

This commit is contained in:
Elmar Kresse
2023-08-26 21:48:44 +02:00
parent a39dee9a0b
commit 991d069931
5 changed files with 22 additions and 19 deletions

View File

@@ -0,0 +1,13 @@
package room
import (
"github.com/labstack/echo/v5"
"github.com/pocketbase/pocketbase"
"htwk-planner/service/db"
"net/http"
)
func GetRooms(c echo.Context, app *pocketbase.PocketBase) error {
rooms := db.GetRooms(app)
return c.JSON(http.StatusOK, rooms)
}