Update an observation
This commit is contained in:
parent
dac0721a41
commit
b90da728fe
9 changed files with 158 additions and 0 deletions
|
@ -42,6 +42,7 @@ func API() *mux.Router {
|
|||
m.Path("/observations").Methods("GET").Name(Observations)
|
||||
m.Path("/observations").Methods("POST").Name(CreateObservation)
|
||||
m.Path("/observations/{Id:.+}").Methods("GET").Name(Observation)
|
||||
m.Path("/observations/{Id:.+}").Methods("PUT").Name(UpdateObservation)
|
||||
|
||||
return m
|
||||
}
|
||||
|
|
|
@ -32,4 +32,5 @@ const (
|
|||
Observation = "observation:get"
|
||||
CreateObservation = "observation:create"
|
||||
Observations = "observation:list"
|
||||
UpdateObservation = "observation:update"
|
||||
)
|
||||
|
|
Reference in a new issue