mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Implement Last.FM Web authentication flow
This commit is contained in:
parent
502a719e96
commit
143cde37e5
3 changed files with 89 additions and 130 deletions
|
@ -34,6 +34,18 @@ func (p *MockedPropertyRepo) Get(id string) (string, error) {
|
|||
return "", model.ErrNotFound
|
||||
}
|
||||
|
||||
func (p *MockedPropertyRepo) Delete(id string) error {
|
||||
if p.err != nil {
|
||||
return p.err
|
||||
}
|
||||
p.init()
|
||||
if _, ok := p.data[id]; ok {
|
||||
delete(p.data, id)
|
||||
return nil
|
||||
}
|
||||
return model.ErrNotFound
|
||||
}
|
||||
|
||||
func (p *MockedPropertyRepo) DefaultGet(id string, defaultValue string) (string, error) {
|
||||
if p.err != nil {
|
||||
return "", p.err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue