from turbo import register import app register.register_group_urls('', [ ('/', app.HomeHandler), ('/index', app.HomeHandler, 'index'), ('/hello', app.HomeHandler, 'home'), ]) register.register_url('/v1/hello', app.ApiHandler)
from turbo import register import app register.register_group_urls('', [ (r"/", app.MainHandler), (r"/a/message/new", app.MessageNewHandler), (r"/a/message/updates", app.MessageUpdatesHandler), ])
# -*- coding:utf-8 -*- from turbo import register from apps.app import god, api, app register.register_group_urls('', [ ('/test', api.AuthCallBackHandler), ('/auth_callback', api.AuthCallBackHandler), ]) register.register_group_urls('/v1', [ ('/home', api.HomeHandler), # 主页,token ('/search', api.SearchHandler), # 搜索,token ('/category', api.CategoryHandler), # 分类 ('/hot', api.HotHandler), # 爆款 ,token ('/zone/list', api.ZoneListHandler), # 专区详情,token ('/login', api.LoginHandler), # 登录 ('/tpwd', api.TpwdHandler), # 生成淘口令 ('/sms_code', api.SMSCodeHandler), # 获取短信验证码 ('/user/code', api.UserCodeHandler), # 帮赚钱 ('/user/alipay', api.UserAlipayHandler), # 设置提现支付宝账户 ('/user/vip', api.UserVipHandler), # 升级为会员 ('/user/channel', api.UserChannelHandler), # 升级为渠道 ('/user/channel/status', api.UserChannelStatusHandler), # 查询渠道任务状态 ('/user/profile', api.ProfileHandler), # 用户信息 ('/user/update', api.UserUpdateHandler), # 更新用户信息 ('/user/invite', api.UserInviteHandler), # 生成邀请码 ('/user/invited/list', api.UserInvitedListHandler), # 生成邀请码 ('/user/bind', api.UserBindHandler), # 用户绑定查询 ('/user/withdraw', api.WithdrawHandler), # 提现 ('/user/withdraw/log', api.WithdrawLogHandler), # 提现
from turbo import register import app import api register.register_group_urls('', [ ('/', app.HomeHandler), ('/plus', app.IncHandler), ('/minus', app.MinusHandler), ]) register.register_group_urls('/v1', [ ('', api.HomeHandler), ])
# -*- coding:utf-8 -*- from turbo import register import app import api register.register_group_urls('', [ ('/', app.HomeHandler), ('/index', app.HomeHandler), ('/create/(dc)', app.CreateHandler), ('/list/(dc)', app.HomeHandler), ('/edit/(dc)/([0-9a-f]{24})', app.EditHandler), ('/delete/(dc)/([0-9a-f]{24})', app.DelHandler), ('/file/([0-9a-f]{24})', app.FileHandler), ]) register.register_group_urls('/v1', [ ('', api.HomeHandler), ])
from turbo import register from . import app register.register_group_urls('', [ ('/', app.HomeHandler), ('/index', app.HomeHandler, 'index'), ('/hello', app.HomeHandler, 'home'), ('/motor', app.AsynHandler), ]) register.register_url('/v1/hello', app.ApiHandler)
from turbo import register import app, api register.register_group_urls('', [ ('/', app.HomeHandler), ]) register.register_group_urls('/v1', [ ('', api.HomeHandler), ])
from turbo import register from . import app register.register_group_urls('', [ (r"/", app.MainHandler), (r"/a/message/new", app.MessageNewHandler), (r"/a/message/updates", app.MessageUpdatesHandler), ])
from turbo import register from . import app from . import appv2 from . import god register.register_group_urls('/api/v1', [ ('/music', app.MusicHeader), ('/music/([0-9a-f]{24})', app.MusicHeader), ]) register.register_group_urls('/api/v2', [ ('/music', appv2.MusicHeader), ('/music/([0-9a-f]{24})', appv2.MusicHeader), ('/music/list', appv2.MusicListHeader), ('/music/search', appv2.MusicSearchHeader), ('/anime/search', appv2.AnimeSearchHeader), ]) register.register_group_urls('/god', [ ('', god.GodHeader), ]) register.register_group_urls('/god/api/v1', [ ('/anime/list', god.AnimeListHeader), ('/anime/add', god.AnimeAddHeader), ('/anime/(save|del)/([0-9a-f]{24})', god.AnimeHeader), ('/anime/upload/(logo|bg)/([0-9a-f]{24})', god.AnimeUploadHeader), ('/music/list', god.MusicListHeader), ('/music/add/([0-9a-f]{24})', god.MusicAddHeader), ('/music/(save|del)/([0-9a-f]{24})', god.MusicHeader),