changed to neighbors

This commit is contained in:
Matthias Hannig 2018-10-03 18:16:17 +02:00
parent 11ab0556f4
commit 2ac5d01a76
2 changed files with 2 additions and 3 deletions

View File

@ -129,9 +129,8 @@ export function loadRouteserverProtocolSuccess(routeserverId, protocol, api) {
export function loadRouteserverProtocol(routeserverId) {
return (dispatch) => {
dispatch(loadRouteserverProtocolRequest(routeserverId));
axios.get(`/api/v1/routeservers/${routeserverId}/neighbours`)
axios.get(`/api/v1/routeservers/${routeserverId}/neighbors`)
.then(({data}) => {
console.log("LRS:", data);
dispatch(loadRouteserverProtocolSuccess(
routeserverId,
data.neighbours,

View File

@ -28,7 +28,7 @@ function routesUrl(type, rsId, pId, page, query) {
rtype = "not-exported"; // This is a bit ugly
}
let base = `/api/v1/routeservers/${rsId}/neighbours/${pId}/routes/${rtype}`
let base = `/api/v1/routeservers/${rsId}/neighbors/${pId}/routes/${rtype}`
let params = `?page=${page}&q=${query}`
return base + params;
};