UniversityRadioYork / ury-rapid

(obsolete) Radio API Daemon
BSD 2-Clause "Simplified" License
2 stars 0 forks source link

Make handler map more uniform #11

Closed MattWindsor91 closed 10 years ago

MattWindsor91 commented 10 years ago

Currently handlers are attached to models in creator.rb by specifying the exact symbol into the table for each separate handler slot.

It'd be nicer if the map was structured by model object internal_name (or similar) and then by verb (:put, :delete, etc), this might even simplify the creation process a bit.