beta. OPC fixed + tested
This commit is contained in:
@@ -56,6 +56,9 @@ export const api = {
|
||||
getIsps: (token) => apiRequest("/isps", { token }),
|
||||
getAliases: (token, isp) => apiRequest(`/isps/${isp}/aliases`, { token }),
|
||||
saveAliases: (token, isp, body) => apiRequest(`/isps/${isp}/aliases`, { method: "PUT", token, body }),
|
||||
getUnits: (token) => apiRequest("/units", { token }),
|
||||
createUnit: (token, body) => apiRequest("/units", { method: "POST", token, body }),
|
||||
updateUnit: (token, symbol, body) => apiRequest(`/units/${encodeURIComponent(symbol)}`, { method: "PATCH", token, body }),
|
||||
createTrendTable: (token, body) => apiRequest("/trend-tables", { method: "POST", token, body }),
|
||||
normalizeAliasMetadata: (token, body) => apiRequest("/admin/normalize-alias-metadata", { method: "POST", token, body }),
|
||||
importSql: (token, body) => apiRequest("/admin/import-sql", { method: "POST", token, body }),
|
||||
|
||||
Reference in New Issue
Block a user