Skip to content

Commit 61fe0e3

Browse files
authored
Merge pull request #18 from yuvipanda/auth
Require authentication for /metrics API Handler
2 parents 6481606 + bf69037 commit 61fe0e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

nbresuse/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
from traitlets.config import Configurable
66
from notebook.utils import url_path_join
77
from notebook.base.handlers import IPythonHandler
8+
from tornado import web
89

910

1011
class MetricsHandler(IPythonHandler):
12+
@web.authenticated
1113
def get(self):
1214
"""
1315
Calculate and return current resource usage metrics

0 commit comments

Comments
 (0)