Skip to content
Snippets Groups Projects
Commit 6bebf03d authored by André Sterba's avatar André Sterba
Browse files

Actually give name from the CLI to the backend

parent f28d5c62
No related branches found
No related tags found
1 merge request!150Let user set a name for a device or autogenerate it
......@@ -55,6 +55,7 @@ if they diverge from the default credentials.`,
"username="+username,
"sbi="+cliSbi,
"pnd="+cliPnd,
"name="+deviceName,
)
},
}
......
......@@ -135,6 +135,7 @@ func httpHandler(writer http.ResponseWriter, request *http.Request) {
}
writer.WriteHeader(http.StatusCreated)
fmt.Fprintf(writer, "device added\n")
fmt.Fprintf(writer, "Name: %s\n", d.Name)
fmt.Fprintf(writer, "UUID: %v\n", d.UUID)
case "request":
err = pnd.Request(id, query.Get("path"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment