Add tooling/docs for auto-generating API hooks.

This commit is contained in:
Dan Albert
2022-03-06 17:16:26 -08:00
parent b7439cbd17
commit de284c2bf6
5 changed files with 1161 additions and 3 deletions

View File

@@ -0,0 +1,7 @@
import { HTTP_URL } from "./backend";
import { createApi, fetchBaseQuery } from "@reduxjs/toolkit/query/react";
export const baseApi = createApi({
baseQuery: fetchBaseQuery({ baseUrl: HTTP_URL }),
endpoints: () => ({}),
});