mirror of
https://github.com/kopia/kopia.git
synced 2026-01-06 21:47:56 -05:00
16 lines
330 B
Go
16 lines
330 B
Go
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/kopia/kopia/internal/serverapi"
|
|
"github.com/kopia/kopia/repo"
|
|
)
|
|
|
|
func handleCurrentUser(ctx context.Context, _ requestContext) (any, *apiError) {
|
|
return serverapi.CurrentUserResponse{
|
|
Username: repo.GetDefaultUserName(ctx),
|
|
Hostname: repo.GetDefaultHostName(ctx),
|
|
}, nil
|
|
}
|