Skip to content

Commit

Permalink
Removed TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
djthorpe committed Jun 5, 2024
1 parent b9a81ca commit 99ba24c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/handler/auth/endpoints.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,28 +41,28 @@ var (
func (service *auth) AddEndpoints(ctx context.Context, r server.Router) {
// Path: /
// Methods: GET
// Scopes: read // TODO: Add scopes
// Scopes: read
// Description: Get current set of tokens and groups
r.AddHandlerFuncRe(ctx, reRoot, service.ListTokens, http.MethodGet).(router.Route).
SetScope(service.ScopeRead()...)

// Path: /
// Methods: POST
// Scopes: write // TODO: Add scopes
// Scopes: write
// Description: Create a new token
r.AddHandlerFuncRe(ctx, reRoot, service.CreateToken, http.MethodPost).(router.Route).
SetScope(service.ScopeWrite()...)

// Path: /<token-name>
// Methods: GET
// Scopes: read // TODO: Add scopes
// Scopes: read
// Description: Get a token
r.AddHandlerFuncRe(ctx, reToken, service.GetToken, http.MethodGet).(router.Route).
SetScope(service.ScopeRead()...)

// Path: /<token-name>
// Methods: DELETE, PATCH
// Scopes: write // TODO: Add scopes
// Scopes: write
// Description: Delete or update a token
r.AddHandlerFuncRe(ctx, reToken, service.UpdateToken, http.MethodDelete, http.MethodPatch).(router.Route).
SetScope(service.ScopeWrite()...)
Expand Down

0 comments on commit 99ba24c

Please sign in to comment.