def CreateBlueprint(): return bp.Blueprint( r'admin', [ url(r'/?', IndexRequestHandler, name="admin_index"), url(r'/register/?', RegisterRequestHandler), (r'/login/?', LoginRequestHandler), url(r'/adminlogin/?', AdminloginRequestHandler, name="login"), url(r'/logout', AdminlogoutRequestHandler, name="logout"), url(r'/profilesetting', ResetPasswordRequestHandler, name="profilesetting"), # 产品管理相关 url(r'/productindex', ProductIndex, name="product_index"), url(r'/productcreate', ProductCreate, name="product_create"), url(r'/productconfig', ProductConfig, name="product_config"), ## 产品知识库相关 url(r'/product_article_index', ArticleIndex, name="product_article_index"), url(r'/product_article_create', ArticleCreate, name="product_article_create"), # 客服人员管理相关 url(r'/customer_index', CustomerIndex, name="customer_index"), url(r'/customer_create', CustomerCreate, name="customer_create"), url(r"/customer_detail", CustomerDetail, name="customer_detail"), # 问答管理 url(r'/question_index', QuestionIndex, name="question_index"), url(r'/question_create', QuestionCreate, name="question_create"), url(r'.*', BaseHandler) ])
def CreateBlueprint(): ''' 创建IM业务子应用 :return: ''' return bp.Blueprint("/im", [ url(r"/?", IndexHandler), url(r"/fetchmimctoken/?", FetchMIMCToken), url(r"/p2p/?", ProxyPushP2PMessage) ])
def CreateBlueprint(): return bp.Blueprint( r"papi", [ url(r"/mimc_token/?", MimcTokenRefresh, name="mimc_token_refresh"), url(r"/keepalive/?", KeepliveWsHandler, name="ws_keepalive"), # websocket reqeust handler url(r"/runtime/chat_mimc_status/?", MimcStatusChange, name="runtimelog_mimc_status_change") ])
def CreateBlueprint(): return bp.Blueprint(r"customer", [ url(r"/?", CustomerIndex, name="customer_frontpage_index"), url(r"/dashboard/?", CustomerDashboard, name="customer_frontpage_dashboard"), url(r"/register/?", CustomerRegister, name="customer_frontpage_register"), url(r"/login/?", CustomerLogin, name="customer_frontpage_login"), url(r"/logout/?", CustomerLogout, name="customer_frontpage_logout"), # 服务相关路由 url(r"/liveservice/?", TxtliveServiceIndex, name="customer_txt_live_service"), ])
def CreateBlueprint(): return bp.Blueprint("exam", [url(r"/?", IndexRequest)])
def CreateBlueprint(): return bp.Blueprint(r"ui", [ url(r"/ts/?", TextserviceRequestHandler, name="text_service_proxy_url"), ])