mirror of
https://github.com/stashapp/stash.git
synced 2026-02-07 16:05:47 +01:00
17 lines
370 B
Go
17 lines
370 B
Go
package api
|
|
|
|
import (
|
|
"context"
|
|
|
|
"github.com/stashapp/stash/pkg/models"
|
|
"github.com/stashapp/stash/pkg/session"
|
|
)
|
|
|
|
func (r *queryResolver) Users(ctx context.Context) ([]*models.User, error) {
|
|
return r.userService.AllUsers(ctx)
|
|
}
|
|
|
|
func (r *queryResolver) Me(ctx context.Context) (*models.User, error) {
|
|
// get current user
|
|
return session.GetCurrentUser(ctx), nil
|
|
}
|