Make all Subsonic helper functions private

This commit is contained in:
Deluan
2020-08-13 22:11:18 -04:00
committed by Deluan Quintão
parent 22f34b3347
commit c271aa24d1
13 changed files with 150 additions and 150 deletions
+2 -2
View File
@@ -14,11 +14,11 @@ func NewUsersController() *UsersController {
// TODO This is a placeholder. The real one has to read this info from a config file or the database
func (c *UsersController) GetUser(w http.ResponseWriter, r *http.Request) (*responses.Subsonic, error) {
user, err := RequiredParamString(r, "username", "Required string parameter 'username' is not present")
user, err := requiredParamString(r, "username", "Required string parameter 'username' is not present")
if err != nil {
return nil, err
}
response := NewResponse()
response := newResponse()
response.User = &responses.User{}
response.User.Username = user
response.User.StreamRole = true