urls.py 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # -*- coding: utf-8 -*-
  2. # !/usr/bin/env python
  3. import os
  4. from django.conf.urls import patterns, url
  5. from apps.common.utils import get_test_point
  6. from apps.web.common.views import *
  7. urlpatterns = patterns('', *[
  8. # 公共文件上传接口
  9. url(r'^upload$', uploadFile, name='uploadFile'),
  10. # 查询地区信息
  11. url(r'^loadDistrictData$', loadDistrictData, name='loadDistrictData'),
  12. # 上传前端日志
  13. url(r'^logFrontend$', logFrontend, name='logFrontend'),
  14. url(r'^getFAQ$', getFAQ, name='getFAQ'),
  15. url(r'^getAddressType$', getAddressType, name='getAddressType'),
  16. # 获取展示通告
  17. url(r'^getNotifications$', getNotifications, name='getNotifications'),
  18. # 根据卡号获取银行名字
  19. url(r'^getCardBankNameType$', getCardBankNameType, name='getCardBankNameType'),
  20. url(r'^getVersion$', getVersion, name='getVersion'),
  21. url(r'^generateNewAppKeyPair$', generateNewAppKeyPair, name='generateNewAppKeyPair'),
  22. url(r'^verifyAppKeyPairs$', verifyAppKeyPairs, name='verifyAppKeyPairs'),
  23. url(r'^apps/edit_wechat_fund$', editWechatFundApp, name='editWechatFundApp'),
  24. url(r'^apps/edit_ali$', editAliApp, name='editAliApp'),
  25. url(r'^apps/list_wechat_fund$', getWechatAppList, name='getWechatAppList'),
  26. url(r'^apps/list_ali$', getAliAppList, name='getAliAppList'),
  27. url(r'^uploadFaultPartPic$', uploadFaultPartPic, name='uploadFaultPartPic'),
  28. url(r'^queryExpressInfo$', queryExpressInfo, name='queryExpressInfo'),
  29. url(r'^ali/notify$', aliNotify, name='aliNotify'),
  30. url(r'^getReceipt$', getReceipt, name="getReceipt"),
  31. url(r'^banks/list$', supportedBanks, name="supportedBanks"),
  32. url(r'^getPowerGraph$', getPowerGraphByDevice, name="getPowerGraphByDevice"),
  33. ])