Skip to content
Snippets Groups Projects
Commit bc37d58c authored by Charlotte Hausman's avatar Charlotte Hausman
Browse files

making UI use new create_capability_request route

parent 092e007a
No related branches found
No related tags found
1 merge request!94fix UI capability creation url
......@@ -9,7 +9,7 @@ import { CapabilityExecution } from "../model/capability-execution";
providedIn: "root",
})
export class CapabilityLauncherService {
private endpoint = "capability/request";
private endpoint = "capability/";
constructor(private httpClient: HttpClient) {}
......@@ -22,10 +22,9 @@ export class CapabilityLauncherService {
capabilityName: string,
parameters: string
): Observable<CapabilityRequest> {
const url = environment.workspacesUrl + this.endpoint;
const url = environment.workspacesUrl + this.endpoint + capabilityName + "/request/create";
const requestParams = JSON.stringify({
capability: capabilityName,
args: parameters,
parameters: parameters,
});
return this.httpClient.post<CapabilityRequest>(url, requestParams);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment