from django.conf.urls import patterns, url, include

from tastypie.api import Api

from opps.containers.api import Container
from opps.articles.api import Post

from .conf import settings


_api = Api(api_name=settings.OPPS_API_NAME)
_api.register(Container())
_api.register(Post())


urlpatterns = patterns(
    '',
    url(r'^', include(_api.urls)),
)

from django.conf.urls import patterns, url, include

from tastypie.api import Api

from opps.containers.api import Container
from opps.articles.api import Post, Album, Link

from .conf import settings


_api = Api(api_name=settings.OPPS_API_NAME)
_api.register(Container())
_api.register(Post())
_api.register(Album())
_api.register(Link())


urlpatterns = patterns(
    '',
    url(r'^', include(_api.urls)),
)

Add api url to album and link
Add api url to album and link

  from django.conf.urls import patterns, url, include
  
  from tastypie.api import Api
  
  from opps.containers.api import Container
- from opps.articles.api import Post
+ from opps.articles.api import Post, Album, Link
  
  from .conf import settings
  
  
  _api = Api(api_name=settings.OPPS_API_NAME)
  _api.register(Container())
  _api.register(Post())
+ _api.register(Album())
+ _api.register(Link())
  
  
  urlpatterns = patterns(
      '',
      url(r'^', include(_api.urls)),
  )
  
Add api url to album and link
## Code Before:
from django.conf.urls import patterns, url, include

from tastypie.api import Api

from opps.containers.api import Container
from opps.articles.api import Post

from .conf import settings


_api = Api(api_name=settings.OPPS_API_NAME)
_api.register(Container())
_api.register(Post())


urlpatterns = patterns(
    '',
    url(r'^', include(_api.urls)),
)

## Instruction:
Add api url to album and link
## Code After:
from django.conf.urls import patterns, url, include

from tastypie.api import Api

from opps.containers.api import Container
from opps.articles.api import Post, Album, Link

from .conf import settings


_api = Api(api_name=settings.OPPS_API_NAME)
_api.register(Container())
_api.register(Post())
_api.register(Album())
_api.register(Link())


urlpatterns = patterns(
    '',
    url(r'^', include(_api.urls)),
)
