url( r'^static/images/header-logo-120.png$', RedirectView.as_view(url='{}images/logo.png'.format( settings.STATIC_URL), permanent=True)), # Apple app universal URL endpoint url(r'^apple-app-site-association', AppleAppSiteAssociation.as_view(), name="apple-app-site-association"), # OAuth2 provider URLs url(r'^o/authorize/?$', AuthorizationApiView.as_view(), name='oauth2_api_authorize'), url(r'^o/token/?$', TokenView.as_view(), name='oauth2_provider_token'), url(r'^o/code/?$', AuthCodeExchange.as_view(), name='oauth2_code_exchange'), url(r'^o/register/?$', RegisterApiView.as_view(), kwargs={'version': 'rfc7591'}, name='oauth2_api_register'), path('o/', include('oauth2_provider.urls', namespace='oauth2_provider')), # Badge Connect URLs url(r'^bcv1/manifest/(?P<domain>[^/]+)$', BadgeConnectManifestView.as_view(), name='badge_connect_manifest'), url(r'^\.well-known/badgeconnect.json$', BadgeConnectManifestRedirectView.as_view(), name='default_bc_manifest_redirect'),
urlpatterns = [ # Backup URLs in case the server isn't serving these directly url(r'^favicon\.png[/]?$', RedirectView.as_view(url='%simages/favicon.png' % settings.STATIC_URL, permanent=True)), url(r'^favicon\.ico[/]?$', RedirectView.as_view(url='%simages/favicon.png' % settings.STATIC_URL, permanent=True)), url(r'^robots\.txt$', RedirectView.as_view(url='%srobots.txt' % settings.STATIC_URL, permanent=True)), # legacy logo url redirect url(r'^static/images/header-logo-120.png$', RedirectView.as_view(url='{}images/logo.png'.format(settings.STATIC_URL), permanent=True)), # Apple app universal URL endpoint url(r'^apple-app-site-association', AppleAppSiteAssociation.as_view(), name="apple-app-site-association"), # OAuth2 provider URLs url(r'^o/authorize/?$', AuthorizationApiView.as_view(), name='oauth2_api_authorize'), url(r'^o/token/?$', TokenView.as_view(), name='oauth2_provider_token'), url(r'^o/code/?$', AuthCodeExchange.as_view(), name='oauth2_code_exchange'), url(r'^o/', include('oauth2_provider.urls', namespace='oauth2_provider')), # Home url(r'^$', info_view, name='index'), url(r'^accounts/login/$', RedirectToUiLogin.as_view(), name='legacy_login_redirect'), # Admin URLs url(r'^staff/sidewide-actions$', SitewideActionFormView.as_view(), name='badgr_admin_sitewide_actions'), url(r'^staff/', include(badgr_admin.urls)), # Service health endpoint url(r'^health', include('health.urls')), # Swagger Docs