#!/usr/bin/env python


from flask import Blueprint

from flask.ext.restful import Api


api = Blueprint("api", __name__, template_folder="templates")

rest = Api(api)

from karma.api.charity import Charity, Charities
from karma.api.post import Post, Posts

# Adding resources
rest.add_resource(Charity, '/charities/<int:charity_name>')
rest.add_resource(Charities, '/charities')
rest.add_resource(Post, '/posts/<int:post_id>')
rest.add_resource(Posts, '/posts')

#!/usr/bin/env python


from flask import Blueprint

from flask.ext.restful import Api


api = Blueprint("api", __name__, template_folder="templates")

rest = Api(api)

from karma.api.charity import Charity, Charities
from karma.api.post import Post, Posts

# Adding resources
rest.add_resource(Charity, '/charities/<int:charity_name>')
rest.add_resource(Charities, '/charities/')
rest.add_resource(Post, '/posts/<int:post_id>')
rest.add_resource(Posts, '/posts/')

Add changes to url thingies
Add changes to url thingies
