Exemplo n.º 1
0
#!/usr/bin/env python
# encoding: utf-8

from tbone.resources.routers import Router
from resources import *

# create a resource router for this app
_movies_router = Router(name='api/movies')
_movies_router.register(MovieResource, 'movie')

routes = []

routes += _movies_router.urls()
Exemplo n.º 2
0
#!/usr/bin/env python
# encoding: utf-8

from tbone.resources.routers import Router
from resources import *

# create a resource router for this app
_blog_router = Router(name='api/blog')
_blog_router.register(EntryResource, 'entry')

routes = []

routes += _blog_router.urls()
Exemplo n.º 3
0
#!/usr/bin/env python
# encoding: utf-8

from tbone.resources.routers import Router
from resources import *

# create a resource router for this app
_chatrooms_router = Router(name='api/chatrooms')
_chatrooms_router.register(UserResource, 'user')
_chatrooms_router.register(RoomResource, 'room')

routes = []

routes += _chatrooms_router.urls()