From 60c179f35712582d1b86bb74693d35625a00efed Mon Sep 17 00:00:00 2001 From: Alexis <35.alexis.pele@gmail.com> Date: Mon, 29 Jun 2020 16:02:14 +0200 Subject: [PATCH] - Fixed an API call --- client/src/api/schoolsRepository.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/api/schoolsRepository.js b/client/src/api/schoolsRepository.js index fada229..62ea04b 100644 --- a/client/src/api/schoolsRepository.js +++ b/client/src/api/schoolsRepository.js @@ -3,10 +3,10 @@ import api from './api' const resource = "/schools" export default { - getOne() { + getAll() { return api.get(`${resource}`) }, - getAll(id) { + getOne(id) { return api.get(`${resource}/${id}`) } } \ No newline at end of file