From 7c7293f7aff927bdf6d98c68abce7a160fe99446 Mon Sep 17 00:00:00 2001 From: Javier Ferrer Date: Thu, 27 Apr 2023 17:31:24 +0200 Subject: [PATCH] Remove old notifications stub --- internal/http/services/ocmd/notifications.go | 34 -------------------- internal/http/services/ocmd/ocm.go | 3 -- 2 files changed, 37 deletions(-) delete mode 100644 internal/http/services/ocmd/notifications.go diff --git a/internal/http/services/ocmd/notifications.go b/internal/http/services/ocmd/notifications.go deleted file mode 100644 index 1e3f591298..0000000000 --- a/internal/http/services/ocmd/notifications.go +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright 2018-2023 CERN -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// -// In applying this license, CERN does not waive the privileges and immunities -// granted to it by virtue of its status as an Intergovernmental Organization -// or submit itself to any jurisdiction. - -package ocmd - -import ( - "net/http" -) - -type notificationsHandler struct { -} - -func (h *notificationsHandler) init(c *config) { -} - -// SendNotification is used to let the provider know that a user has removed a share. -func (h *notificationsHandler) SendNotification(w http.ResponseWriter, r *http.Request) { - w.WriteHeader(http.StatusNotImplemented) -} diff --git a/internal/http/services/ocmd/ocm.go b/internal/http/services/ocmd/ocm.go index ab178796f6..fa92fb4121 100644 --- a/internal/http/services/ocmd/ocm.go +++ b/internal/http/services/ocmd/ocm.go @@ -75,19 +75,16 @@ func New(m map[string]interface{}, log *zerolog.Logger) (global.Service, error) func (s *svc) routerInit() error { sharesHandler := new(sharesHandler) - notificationsHandler := new(notificationsHandler) invitesHandler := new(invitesHandler) if err := sharesHandler.init(s.Conf); err != nil { return err } - notificationsHandler.init(s.Conf) if err := invitesHandler.init(s.Conf); err != nil { return err } s.router.Post("/shares", sharesHandler.CreateShare) - s.router.Post("/notifications", notificationsHandler.SendNotification) s.router.Post("/invite-accepted", invitesHandler.AcceptInvite) return nil }