EN-94: fix ShippersView.vue pagination, change public-companies to companies endpoint
This commit is contained in:
@@ -50,7 +50,7 @@ export const getNews = async() => {
|
||||
|
||||
export const getCompanies = async(filter) => {
|
||||
try {
|
||||
const endpoint = `/v1/public-companies/${filter}`;
|
||||
const endpoint = `/v1/companies/${filter}`;
|
||||
console.log(endpoint);
|
||||
const {data} = await api.get(endpoint);
|
||||
console.log(data);
|
||||
@@ -75,7 +75,7 @@ export const getUsersCompany = async(filter) => {
|
||||
|
||||
export const getPublicUsersCompany = async(filter) => {
|
||||
try {
|
||||
const endpoint = `/v1/public-companies/users/${filter}`;
|
||||
const endpoint = `/v1/companies/users/${filter}`;
|
||||
// console.log({endpoint});
|
||||
const {data} = await api.get(endpoint);
|
||||
console.log(data.data)
|
||||
|
||||
Reference in New Issue
Block a user