Register only query param name change

This commit is contained in:
Adam Štrauch 2020-08-18 22:52:34 +02:00
parent 6d0f6ca130
commit fb69cd2a81
Signed by: cx
GPG Key ID: 018304FFA8988F8D

View File

@ -96,9 +96,9 @@ func main() {
})
// Create a new app
// If you add register=1 into query string, it won't start or create any container, just adds record into the database.
// If you add register_only=1 into query string, it won't start or create any container, just adds record into the database.
e.POST("/v1/apps", func(c echo.Context) error {
registerOnly := c.QueryParam("register") == "1"
registerOnly := c.QueryParam("register_only") == "1"
app := apps.App{}
err := c.Bind(&app)