Expand logging, and daemonless command support.
This adds more logging in certain places, and adds logging to the CLI. It also allows for certain commands in the CLI to be used without a daemon connection, namely `init`, which previously required the daemon to be connected, but now does not since it doesnt need it.
This commit is contained in:
@@ -19,6 +19,7 @@ func main() {
|
||||
http.HandleFunc("GET /app/by-name/{name}", fluxServer.GetAppByName)
|
||||
http.HandleFunc("GET /app/by-id/{id}", fluxServer.GetAppById)
|
||||
|
||||
// a PUT request is the proper type to use since these endpoints are idempotent
|
||||
http.HandleFunc("PUT /app/{id}/start", fluxServer.StartApp)
|
||||
http.HandleFunc("PUT /app/{id}/stop", fluxServer.StopApp)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user