def __init__(self):
"""Define routes to handlers."""
super(DnsSyncApplication, self).__init__([
('/push_notification', ComputeEngineActivityPush),
('/start_audit_log_loop', audit_log.StartAuditLogLoop),
('/logout', auth.Logout),
('/auth', auth.Oauth2Callback),
('/stop_audit_log_loop', audit_log.StopAuditLogLoop),
('/get_zone_config', zones.GetZoneConfig),
('/get_projects', zones.GetProjects),
('/get_project_zones', zones.GetProjectZones),
('/set_zone_config', zones.SetZoneConfig),
('/get_audit_log_state', audit_log.GetAuditLogState),
('/static/(.+)', AdminStaticFileHandler),
('/sync_projects', SyncProjectsWithDns),
webapp2.Route(
'/',
webapp2.RedirectHandler,
defaults={'_uri': '/static/index.html'}),
webapp2.Route(
'/index.html',
webapp2.RedirectHandler,
defaults={'_uri': '/static/index.html'}),
webapp2.Route(
'/favicon.ico',
webapp2.RedirectHandler,
defaults={'_uri': '/static/images/favicon.ico'}),
])
评论列表
文章目录