Skip to content

Commit

Permalink
Merge pull request #416 from openinfradev/snr_read
Browse files Browse the repository at this point in the history
trivial. add route policyNotification
  • Loading branch information
ktkfree authored Apr 23, 2024
2 parents 0b699d9 + 91c73f6 commit 1cb2878
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions internal/delivery/api/endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ const (

// PolicyNotification
GetPolicyNotifications
GetPolicyNotification

// Stack
GetStacks // 스택관리/조회
Expand Down
1 change: 1 addition & 0 deletions internal/route/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ func SetupRouter(db *gorm.DB, argoClient argowf.ArgoClient, kc keycloak.IKeycloa

policyNotificationHandler := delivery.NewPolicyNotificationHandler(usecaseFactory)
r.Handle(API_PREFIX+API_VERSION+"/organizations/{organizationId}/policy-notifications", customMiddleware.Handle(internalApi.GetSystemNotifications, http.HandlerFunc(policyNotificationHandler.GetPolicyNotifications))).Methods(http.MethodGet)
r.Handle(API_PREFIX+API_VERSION+"/organizations/{organizationId}/policy-notification", customMiddleware.Handle(internalApi.GetSystemNotification, http.HandlerFunc(policyNotificationHandler.GetPolicyNotification))).Methods(http.MethodGet)

stackHandler := delivery.NewStackHandler(usecaseFactory)
r.Handle(API_PREFIX+API_VERSION+"/organizations/{organizationId}/stacks", customMiddleware.Handle(internalApi.GetStacks, http.HandlerFunc(stackHandler.GetStacks))).Methods(http.MethodGet)
Expand Down

0 comments on commit 1cb2878

Please sign in to comment.