Compare commits

..

1 Commits

Author SHA1 Message Date
8d0e8c7ce4
submissions: maps endpoints 2025-04-01 16:48:49 -07:00

@ -56,6 +56,11 @@ func (svc *Service) ListMaps(ctx context.Context, params api.ListMapsParams) ([]
//
// GET /maps/{MapID}
func (svc *Service) GetMap(ctx context.Context, params api.GetMapParams) (*api.Map, error) {
_, ok := ctx.Value("UserInfo").(UserInfoHandle)
if !ok {
return nil, ErrUserInfo
}
mapResponse, err := svc.Client.Get(ctx, &maps.IdMessage{
ID: params.MapID,
})