mirror of
https://github.com/hay-kot/homebox.git
synced 2025-07-31 14:50:28 +00:00
api endpoint for currencies
This commit is contained in:
parent
dbf1373e0c
commit
645155ad10
12 changed files with 322 additions and 85 deletions
|
@ -68,7 +68,7 @@ func NewCurrencyService(currencies []Currency) *CurrencyRegistry {
|
|||
}
|
||||
}
|
||||
|
||||
func (cs *CurrencyRegistry) GetCurrencies() []Currency {
|
||||
func (cs *CurrencyRegistry) Slice() []Currency {
|
||||
cs.mu.RLock()
|
||||
defer cs.mu.RUnlock()
|
||||
out := make([]Currency, 0, len(cs.registry))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue