Rename shelves/get endpoint to shelf/getAll for consistency
This commit is contained in:
parent
b99bdfc562
commit
a596e685d6
|
@ -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;
|
||||
});
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue