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 33"""Tornado handlers for kernel specs."""
44
55import notebook .services .kernelspecs .handlers as notebook_handlers
6+ import notebook .kernelspecs .handlers as notebook_kernelspecs_resources_handlers
7+
68from ...mixins import TokenAuthorizationMixin , CORSMixin , JSONErrorsMixin
79
810# Extends the default handlers from the notebook package with token auth, CORS
1214 # Everything should have CORS and token auth
1315 bases = (TokenAuthorizationMixin , CORSMixin , JSONErrorsMixin , cls )
1416 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