Skip to content

Commit

Permalink
register http post and delete
Browse files Browse the repository at this point in the history
  • Loading branch information
Jennifer-chen-rh committed Mar 1, 2024
1 parent 34c0f09 commit 6d62c8c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions internal/cmd/server/start_alarm_subscription_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,10 +197,18 @@ func (c *AlarmSubscriptionServerCommand) run(cmd *cobra.Command, argv []string)
"/o2ims-infrastructureInventory/{version}/alarmSubscriptions",
adapter,
).Methods(http.MethodGet)
router.Handle(
"/o2ims-infrastructureInventory/{version}/alarmSubscriptions",
adapter,
).Methods(http.MethodPost)
router.Handle(
"/o2ims-infrastructureInventory/{version}/alarmSubscriptions/{alarmSubscriptionID}",
adapter,
).Methods(http.MethodGet)
router.Handle(
"/o2ims-infrastructureInventory/{version}/alarmSubscriptions/{alarmSubscriptionID}",
adapter,
).Methods(http.MethodDelete)

// Start the API server:
apiListener, err := network.NewListener().
Expand Down

0 comments on commit 6d62c8c

Please sign in to comment.