Files
kopia/internal/server/api_user.go
Jarek Kowalski cbc66f936d chore(ci): upgraded linter to 1.53.3 (#3079)
* chore(ci): upgraded linter to 1.53.3

This flagged a bunch of unused parameters, so the PR is larger than
usual, but 99% mechanical.

* separate lint CI task

* run Lint in separate CI
2023-06-18 13:26:01 -07:00

16 lines
338 B
Go

package server
import (
"context"
"github.com/kopia/kopia/internal/serverapi"
"github.com/kopia/kopia/repo"
)
func handleCurrentUser(ctx context.Context, _ requestContext) (interface{}, *apiError) {
return serverapi.CurrentUserResponse{
Username: repo.GetDefaultUserName(ctx),
Hostname: repo.GetDefaultHostName(ctx),
}, nil
}