From a9224dd4f142b9affcbdd3b1f4eaf8fd1729312b Mon Sep 17 00:00:00 2001 From: Akshith Madhur Date: Mon, 1 Apr 2024 10:37:10 +0530 Subject: [PATCH] add endpoint to router --- server/action/organisation/token/route.go | 1 + server/action/organisation/token/validate.go | 3 --- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/server/action/organisation/token/route.go b/server/action/organisation/token/route.go index 0c9566dd..e7d654e1 100644 --- a/server/action/organisation/token/route.go +++ b/server/action/organisation/token/route.go @@ -23,6 +23,7 @@ func Router() chi.Router { r.Post("/", create) r.Delete("/{token_id}", delete) r.Post("/validate", validate) + r.Post("/info", tokenInfo) return r } diff --git a/server/action/organisation/token/validate.go b/server/action/organisation/token/validate.go index 2d9b9ba2..07e1f873 100644 --- a/server/action/organisation/token/validate.go +++ b/server/action/organisation/token/validate.go @@ -14,9 +14,6 @@ import ( ) // validationBody request body -type validationBody struct { - Token string `json:"token" validate:"required"` -} // Validate - validate organisation token // @Summary Show a organisation token