Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add consoles and terminals handlers for RetroLab #54

Merged
merged 2 commits into from Sep 20, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
18 changes: 17 additions & 1 deletion plugins/retrolab/fps_retrolab/routes.py
Expand Up @@ -50,7 +50,23 @@ async def get_notebook(
name: str,
user: User = Depends(current_user()),
):
return get_index(name, "notebook")
return get_index(name, "notebooks")


@router.get("/retro/consoles/{name}", response_class=HTMLResponse)
async def get_console(
name: str,
user: User = Depends(current_user()),
):
return get_index(name, "consoles")


@router.get("/retro/terminals/{name}", response_class=HTMLResponse)
async def get_terminal(
name: str,
user: User = Depends(current_user()),
):
return get_index(name, "terminals")


@router.get("/lab/api/settings/@jupyterlab/{name0}:{name1}")
Expand Down