The code exports a friendbookApi object that you can use to create an Api object. The friendbookApi object has the following properties:
reducerPath: This is the path to the reducer that you want to use.
baseQuery: This is the query that you want to use to find all the pages in your friendbook.
Library: react
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query";
export const friendbookApi = createApi({
reducerPath: "friendbookApi",
baseQuery: fetchBaseQuery({ baseUrl: "http://localhost:3000/" }),
});