-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapi_urls.py
34 lines (29 loc) · 1.11 KB
/
api_urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
from django.conf.urls.defaults import *
from tastypie.api import Api
from brubeck.articles.api import ArticleResource
from brubeck.blogs.api import EntryResource,BlogResource
from brubeck.design.api import GraphicResource
from brubeck.photography.api import PhotoResource
from brubeck.tagging.api import TagResource
from brubeck.events.api import EventResource
from brubeck.podcasts.api import PodcastResource,ChannelResource
from brubeck.multimedia.api import AudioResource,VideoResource,SlideshowResource
from brubeck.publishing.api import SectionResource,IssueResource
v1_api = Api(api_name='v1')
v1_api.register(SectionResource())
v1_api.register(IssueResource())
v1_api.register(ArticleResource())
v1_api.register(BlogResource())
v1_api.register(EntryResource())
v1_api.register(GraphicResource())
v1_api.register(PhotoResource())
v1_api.register(EventResource())
v1_api.register(ChannelResource())
v1_api.register(PodcastResource())
v1_api.register(AudioResource())
v1_api.register(VideoResource())
v1_api.register(SlideshowResource())
v1_api.register(TagResource())
urlpatterns = patterns('',
(r'^', include(v1_api.urls)),
)