Skip to content

Commit 45262a7

Browse files
committed
Normalized URL for machines endpoint
1 parent 5c7d5f6 commit 45262a7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ async def get_network(run_id):
172172

173173

174174
# return a list of all possible registered machines
175-
@app.get('/v1/machines/')
175+
@app.get('/v1/machines')
176176
async def get_machines():
177177

178178
data = get_machine_list()

frontend/js/request.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(async () => {
22
try {
3-
var machines_json = await makeAPICall('/v1/machines/');
3+
var machines_json = await makeAPICall('/v1/machines');
44

55
machines_json.data.forEach(machine => {
66
if(machine[2] == false) return;

frontend/js/timeline.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ const populateMachines = async () => {
5757
try {
5858
const machines_select = document.querySelector('select[name="machine_id"]');
5959

60-
machines_data = (await makeAPICall('/v1/machines/'))
60+
machines_data = (await makeAPICall('/v1/machines'))
6161
machines_data.data.forEach(machine => {
6262
let newOption = new Option(machine[1],machine[0]);
6363
machines_select.add(newOption,undefined);

0 commit comments

Comments
 (0)