Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
@app.route('/api/media/sources')
@flask_login.login_required
def media_sources():
return json.dumps(list(mcmedia.all_sources()), separators=(',',':'))