|
getAll(): Observable<Palette[]> { |
Instead of listing all the csvs here, would it be easier to have the beadcolors project generate a simple txt file that lists all the csvs in the project, then this code would just reference the txt file and dynamically iterate through the listed files? Then adding new palettes (which, granted, probably won't be that common) wouldn't require any modification here.
beadifier/src/app/palette/palette.service.ts
Line 24 in 84e05da
Instead of listing all the csvs here, would it be easier to have the beadcolors project generate a simple txt file that lists all the csvs in the project, then this code would just reference the txt file and dynamically iterate through the listed files? Then adding new palettes (which, granted, probably won't be that common) wouldn't require any modification here.