2017-02-11 09:32:30 -06:00
|
|
|
"""URL patterns for the facts web views."""
|
|
|
|
from django.conf.urls import url
|
2021-04-25 18:48:34 -05:00
|
|
|
from django.urls import path
|
2017-02-11 09:32:30 -06:00
|
|
|
|
2021-04-25 18:48:34 -05:00
|
|
|
from facts.views import factcategory_detail, index, rpc_get_facts, rpc_get_random_fact
|
2017-02-11 09:32:30 -06:00
|
|
|
|
|
|
|
urlpatterns = [
|
2021-04-25 18:48:34 -05:00
|
|
|
path('rpc/<category>/', rpc_get_facts, name='weather_rpc_get_facts'),
|
|
|
|
path('rpc/<category>/random/', rpc_get_random_fact, name='weather_rpc_get_random_fact'),
|
|
|
|
|
2017-02-11 09:32:30 -06:00
|
|
|
url(r'^$', index, name='facts_index'),
|
|
|
|
url(r'^(?P<factcategory_name>.+)/$', factcategory_detail, name='facts_factcategory_detail'),
|
|
|
|
]
|