1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-22 03:16:34 +00:00
Files
seahub/thirdpart/captcha/urls.py

14 lines
473 B
Python
Raw Normal View History

2013-11-09 10:42:06 +08:00
try:
from django.conf.urls import url
2013-11-09 10:42:06 +08:00
except ImportError:
from django.conf.urls.defaults import url
2013-11-09 10:42:06 +08:00
from .views import *
urlpatterns = [
url(r'image/(?P<key>\w+)/$', captcha_image, name='captcha-image', kwargs={'scale': 1}),
url(r'image/(?P<key>\w+)@2/$', captcha_image, name='captcha-image-2x', kwargs={'scale': 2}),
url(r'audio/(?P<key>\w+)/$', captcha_audio, name='captcha-audio'),
url(r'refresh/$', captcha_refresh, name='captcha-refresh'),
]