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')
@flask_login.login_required
def media():
return json.dumps({
'sources': list(mcmedia.all_sources())
, 'sets': list(mcmedia.all_sets())
}, separators=(',',':'));