Skip to content

Commit

Permalink
fix: remove auth check
Browse files Browse the repository at this point in the history
  • Loading branch information
louisewang1 committed Jan 7, 2022
1 parent a965f8a commit 460e1b9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/api/search.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import { QueryClientConfig } from '../types';
import configureAxios, { verifyAuthentication } from './axios';
import configureAxios from './axios';
import { buildGetItemsByKeywordRoute } from './routes';

const axios = configureAxios();

/* eslint-disable import/prefer-default-export */
export const getItemsByKeywords = async (range: string, keywords: string, { API_HOST }: QueryClientConfig) =>
verifyAuthentication(() =>
axios.get(`${API_HOST}/${buildGetItemsByKeywordRoute(range, keywords)}`).then(({ data }) => data),
(axios.get(`${API_HOST}/${buildGetItemsByKeywordRoute(range, keywords)}`).then(({ data }) => data)
);

0 comments on commit 460e1b9

Please sign in to comment.