mirror of
https://github.com/kennethreitz-archive/fablib-api.git
synced 2026-06-05 23:30:19 +00:00
profile, document
This commit is contained in:
@@ -201,14 +201,14 @@ class Document(Resource):
|
||||
api.add_resource(Document, '/<string:profile>/<path:document>')
|
||||
|
||||
class DocumentText(Resource):
|
||||
def get(self, key):
|
||||
def get(self, profile, document):
|
||||
return trunk.get(key)
|
||||
|
||||
api.add_resource(DocumentText, '/<string:profile>/<path:document>/text')
|
||||
|
||||
|
||||
class DocumentHTML(Resource):
|
||||
def get(self, key):
|
||||
def get(self, profile, document):
|
||||
return trunk.get(key)
|
||||
|
||||
api.add_resource(DocumentHTML, '/<string:profile>/<path:document>/html')
|
||||
|
||||
Reference in New Issue
Block a user