UNPKG

identify-media

Version:

Analyse file path and content to make search criteria for media APIs

16 lines (13 loc) 334 B
import {OmdbSearchQuery, RequestConfig} from "../index"; const search = (query: OmdbSearchQuery, apikey: string): RequestConfig => { return { baseURL: 'https://www.omdbapi.com', method: 'GET', params: { apikey, ...query }, url: '/', } } export default search;