from django.conf.urls import url

from . import views

urlpatterns = [
    url(r'^problemset/$', views.problemset, name='problemset'), 
    url(r'^problem/(?P<problem_id>[0-9]+)/$', views.problem, name='problem'),
    url(r'^user/(?P<user_id>[\s|\S]+)/$', views.user, name='user'), 
    url(r'^submit/(?P<problem_id>[0-9]+)/$', views.submit, name='submit'),
    url(r'^submit/$', views.submit, name='submit'),
    url(r'^code/(?P<submission_id>[0-9]+)/$', views.code, name='code'),
    url(r'^$', views.index, name='index'),
    url(r'^login/$', views.login, name='login'), 
    url(r'^register/$', views.register, name='register'), 
    url(r'^status/$', views.status, name='status'), 
    url(r'^ranklist/$', views.ranklist, name='ranklist'), 
    url(r'^modify/$', views.modify, name='modify'), 
    url(r'^logout/$', views.logout, name='logout'), 
]
