mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-04 13:07:36 +03:00
16 lines
524 B
Go
16 lines
524 B
Go
package api
|
|
|
|
import "github.com/cloudsonic/sonic-server/api/responses"
|
|
|
|
type UsersController struct{ BaseAPIController }
|
|
|
|
// TODO This is a placeholder. The real one has to read this info from a config file or the database
|
|
func (c *UsersController) GetUser() {
|
|
r := c.NewEmpty()
|
|
r.User = &responses.User{}
|
|
r.User.Username = c.RequiredParamString("username", "Required string parameter 'username' is not present")
|
|
r.User.StreamRole = true
|
|
r.User.DownloadRole = true
|
|
r.User.ScrobblingEnabled = true
|
|
c.SendResponse(r)
|
|
}
|