This commit adds the Compliance service's API, which we can query for a list of SCAP security policies. In a follow-up PR, we will allow the user to optionally select a policy when creating an image in the wizard.
10 lines
372 B
TypeScript
10 lines
372 B
TypeScript
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react';
|
|
|
|
import { COMPLIANCE_API } from '../constants';
|
|
|
|
// initialize an empty api service that we'll inject endpoints into later as needed
|
|
export const emptyComplianceApi = createApi({
|
|
reducerPath: 'complianceApi',
|
|
baseQuery: fetchBaseQuery({ baseUrl: COMPLIANCE_API }),
|
|
endpoints: () => ({}),
|
|
});
|