einsteinx2/WaveBox — pull request #33 by mdlayher (2012-12-10 18:47:27+00:00)
Title: Cleanup and optimization of ApiHandlerFactory, added dummy UsersApiHandl...

...er, hardening of DatabaseApiHandler, JSON formatting on Jukebox/Podcast ApiHandlers

ApiHandlerFactory:
- Added fix to handle call to /api/ causing exception
- Using switch statement for API call action (more efficient on Mono than if/else thanks to hashtable)
- Added dummy UsersApiHandler
- Fixed unreachable code in if/else logic in Authenticate

UsersApiHandler:
- Created dummy handler which simply returns that it is not yet implemented

DatabaseApiHandler:
- If no parameters provided and backup database doesn't exist, returns JSON error instead of throwing exception

Jukebox/Podcast ApiHandlers:
- Added Settings.JsonFormatting to all JsonConvert.SerializeObject calls