Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def index(self):
return {
'secret': self.request.params.get('secret'),
'auth': is_auth(self.request),
'commands': self.gene.config.get('server', {}).get('predefined_commands', []),
'status': get_status(self.gene),
'run_url': self.request.route_url('admin_run')
}