Skip to content

Commit

Permalink
add endpoint to router
Browse files Browse the repository at this point in the history
  • Loading branch information
elliot14A committed Apr 1, 2024
1 parent 89e6635 commit a9224dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 1 addition & 0 deletions server/action/organisation/token/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
3 changes: 0 additions & 3 deletions server/action/organisation/token/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a9224dd

Please sign in to comment.