classifier.TrainedClassifierHandler), get_redirect_route(r'/ml/nextjobhandler', classifier.NextJobHandler), get_redirect_route( r'/playthroughdatahandler/<exploration_id>/<playthrough_id>', editor.FetchPlaythroughHandler), get_redirect_route(r'/resolveissuehandler/<exploration_id>', editor.ResolveIssueHandler), get_redirect_route(r'%s' % feconf.CSRF_HANDLER_URL, base.CsrfTokenHandler), get_redirect_route(r'/platform_features_evaluation_handler', platform_feature.PlatformFeaturesEvaluationHandler), get_redirect_route(r'/platform_feature_dummy_handler', platform_feature.PlatformFeatureDummyHandler), get_redirect_route(r'/learn/<classroom_url_fragment>', classroom.ClassroomPage), ] # Adding redirects for topic landing pages. for subject in feconf.AVAILABLE_LANDING_PAGES: for topic in feconf.AVAILABLE_LANDING_PAGES[subject]: URLS.append( get_redirect_route(r'/%s/%s' % (subject, topic), custom_landing_pages.TopicLandingPage)) # 404 error handler (Needs to be at the end of the URLS list). URLS.append(get_redirect_route(r'/<:.*>', base.Error404Handler)) app = transaction_services.toplevel_wrapper( # pylint: disable=invalid-name webapp2.WSGIApplication(URLS, debug=feconf.DEBUG)) firebase_auth_services.establish_firebase_connection()
r'/voice_artist_management_handler/<entity_type>/<entity_id>', voice_artist.VoiceArtistManagementHandler), ] # Adding redirects for topic landing pages. for subject in feconf.AVAILABLE_LANDING_PAGES: for topic in feconf.AVAILABLE_LANDING_PAGES[subject]: URLS.append( get_redirect_route(r'/%s/%s' % (subject, topic), custom_landing_pages.TopicLandingPage)) if constants.DEV_MODE: URLS.append( get_redirect_route( r'/initialize_android_test_data', android_e2e_config.InitializeAndroidTestDataHandler)) # Redirect all routes handled using angular router to the oppia root page. for page in constants.PAGES_REGISTERED_WITH_FRONTEND.values(): URLS.append( get_redirect_route(r'/%s' % page['ROUTE'], oppia_root.OppiaRootPage)) # 404 error handler (Needs to be at the end of the URLS list). URLS.append(get_redirect_route(r'/<:.*>', base.Error404Handler)) app = transaction_services.toplevel_wrapper( # pylint: disable=invalid-name webapp2.WSGIApplication(URLS, debug=feconf.DEBUG)) firebase_auth_services.establish_firebase_connection( ) # type: ignore[no-untyped-call]