Skip to content

Commit

Permalink
Simplify custom ordering endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
xofbd committed Mar 28, 2024
1 parent dc941f5 commit d13a393
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jupyterlab_custom_order/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ def setup_handlers(web_app, root_dir):
host_pattern = ".*$"

base_url = web_app.settings["base_url"]
route_pattern = url_path_join(base_url, "jupyterlab-custom-order", f"customorder{path_regex}")
route_pattern = url_path_join(base_url, f"customorder{path_regex}")
handlers = [(route_pattern, FileOrderHandler, {"path": root_dir})]
web_app.add_handlers(host_pattern, handlers)
2 changes: 1 addition & 1 deletion src/listing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ namespace Private {

export async function customOrderRequest(path: string): Promise<any> {
const settings = ServerConnection.makeSettings();
const url = URLExt.join(settings.baseUrl, "jupyterlab-custom-order", "customorder", path);
const url = URLExt.join(settings.baseUrl, "customorder", path);
let response = await ServerConnection.makeRequest(url, {}, settings);
if (!response.ok) {
throw new HttpError('Failed to load custom order', response.status);
Expand Down

0 comments on commit d13a393

Please sign in to comment.