Skip to content

Commit

Permalink
Add SUPPORTED_METHODS class attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
mpacer committed Oct 6, 2017
1 parent 93d0c4e commit 7d1f362
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions notebook/nbconvert/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ def get_exporter(format, **kwargs):
raise web.HTTPError(500, "Could not construct Exporter: %s" % e)

class NbconvertFileHandler(IPythonHandler):
SUPPORTED_METHODS = ('GET',)

@web.authenticated
def get(self, format, path):
Expand Down Expand Up @@ -125,6 +126,7 @@ def get(self, format, path):


class NbconvertServiceHandler(IPythonHandler):
SUPPORTED_METHODS = ('POST',)

@web.authenticated
def post(self):
Expand Down

0 comments on commit 7d1f362

Please sign in to comment.