Skip to content

Commit

Permalink
Merge pull request #49 from Comcast/fix/v1-to-v3
Browse files Browse the repository at this point in the history
Change the new api to be v3 vs v1.
  • Loading branch information
schmidtw authored Aug 29, 2017
2 parents 5cf1516 + a95d851 commit 99b25e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/caduceus/caduceus.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,8 @@ func caduceus(arguments []string) int {
caduceusHandler := alice.New(authHandler.Decorate)

mux := mux.NewRouter()
mux.Handle("/api/v1/notify", caduceusHandler.Then(serverWrapper))
mux.Handle("/api/v1/profile", caduceusHandler.Then(profileWrapper))
mux.Handle("/api/v3/notify", caduceusHandler.Then(serverWrapper))
mux.Handle("/api/v3/profile", caduceusHandler.Then(profileWrapper))

// Support the old endpoint too.
mux.Handle("/api/v2/notify/{deviceid}/event/{eventtype:.*}", caduceusHandler.Then(serverWrapper))
Expand Down

0 comments on commit 99b25e3

Please sign in to comment.