diff --git a/app/views/shelves/controller.js b/app/views/shelves/controller.js index 520af0a..153f3ea 100644 --- a/app/views/shelves/controller.js +++ b/app/views/shelves/controller.js @@ -31,7 +31,7 @@ export class ShelvesController extends ViewController { } getUserShelves () { - return fetch('/api/shelves/get').then(response => response.json()).then(shelves => { + return fetch('/api/shelf/getAll').then(response => response.json()).then(shelves => { this.state.myShelves = shelves; }); } diff --git a/server/routes/shelf.js b/server/routes/shelf.js index 3f8fe96..084be7d 100644 --- a/server/routes/shelf.js +++ b/server/routes/shelf.js @@ -7,7 +7,7 @@ async function routes(fastify, options) { return false; }); - fastify.get('/api/shelves/get', async (request, reply) => { + fastify.get('/api/shelf/getAll', async (request, reply) => { if (!request.isLoggedInUser) { return reply.code(400).send({ error: true,