alfg / murmur-rest

:headphones: A RESTful API for administering virtual Mumble servers. Built with Flask and Ice.
https://github.com/alfg/murmur-rest
79 stars 34 forks source link

Add CVP view. #12

Closed fwaggle closed 8 years ago

fwaggle commented 8 years ago

This was pretty much copy+pasted from MumbleDog's internal service, with a few changes. It currently doesn't require authentication, even if ENABLE_AUTH = True in settings.py, as CVP is normally public.

Uses the same JSONP wrapper/decorator as guildbit.

Thanks to @alfg for pointing it out, I copied the decorator from guildbit, which was itself copied from https://gist.github.com/aisipos/1094140

Using the accepted[by whom?] standard of prefixing custom configuration variables with 'x_', CVP is only enabled for servers where x_cvp is "true", per Python boolean truth standards.

alfg commented 8 years ago

👍