File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
kernel_gateway/services/kernelspecs Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 3
3
"""Tornado handlers for kernel specs."""
4
4
5
5
import notebook .services .kernelspecs .handlers as notebook_handlers
6
+ import notebook .kernelspecs .handlers as notebook_kernelspecs_resources_handlers
7
+
6
8
from ...mixins import TokenAuthorizationMixin , CORSMixin , JSONErrorsMixin
7
9
8
10
# Extends the default handlers from the notebook package with token auth, CORS
12
14
# Everything should have CORS and token auth
13
15
bases = (TokenAuthorizationMixin , CORSMixin , JSONErrorsMixin , cls )
14
16
default_handlers .append ((path , type (cls .__name__ , bases , {})))
17
+
18
+ for path , cls in notebook_kernelspecs_resources_handlers .default_handlers :
19
+ # Everything should have CORS and token auth
20
+ bases = (TokenAuthorizationMixin , CORSMixin , JSONErrorsMixin , cls )
21
+ default_handlers .append ((path , type (cls .__name__ , bases , {})))
You can’t perform that action at this time.
0 commit comments