diff --git a/internal/sbi/api_sorprotection.go b/internal/sbi/api_sorprotection.go index a24b8b0..ff5ebf3 100644 --- a/internal/sbi/api_sorprotection.go +++ b/internal/sbi/api_sorprotection.go @@ -22,5 +22,5 @@ func (s *Server) getSorprotectionRoutes() []Route { } func (s *Server) SupiUeSorPost(c *gin.Context) { - c.JSON(http.StatusOK, gin.H{}) + c.JSON(http.StatusNotImplemented, gin.H{}) } diff --git a/internal/sbi/api_upuprotection.go b/internal/sbi/api_upuprotection.go index 36a8d0f..856ebf1 100644 --- a/internal/sbi/api_upuprotection.go +++ b/internal/sbi/api_upuprotection.go @@ -22,5 +22,5 @@ func (s *Server) getUpuprotectionRoutes() []Route { } func (s *Server) SupiUeUpuPost(c *gin.Context) { - c.JSON(http.StatusOK, gin.H{}) + c.JSON(http.StatusNotImplemented, gin.H{}) } diff --git a/internal/sbi/consumer/consumer.go b/internal/sbi/consumer/consumer.go index ae286ba..a0cd457 100644 --- a/internal/sbi/consumer/consumer.go +++ b/internal/sbi/consumer/consumer.go @@ -7,8 +7,6 @@ import ( "github.com/free5gc/openapi/Nudm_UEAuthentication" ) -var consumer *Consumer - type ConsumerAusf interface { app.App } @@ -20,10 +18,6 @@ type Consumer struct { *nudmService } -func GetConsumer() *Consumer { - return consumer -} - func NewConsumer(ausf ConsumerAusf) (*Consumer, error) { c := &Consumer{ ConsumerAusf: ausf, @@ -40,6 +34,5 @@ func NewConsumer(ausf ConsumerAusf) (*Consumer, error) { ueauClients: make(map[string]*Nudm_UEAuthentication.APIClient), } - consumer = c return c, nil }