Register only query param name change
This commit is contained in:
parent
6d0f6ca130
commit
fb69cd2a81
4
main.go
4
main.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user