mirror of https://github.com/buster-so/buster.git
Update request to use v2
This commit is contained in:
parent
0c6271f5c9
commit
1d646c003d
|
@ -1,9 +1,11 @@
|
|||
import { serverFetch } from '../../createServerInstance';
|
||||
import { GetTitleResponse, GetTitleRequest } from '@buster/server-shared/title';
|
||||
import { BASE_URL_V2 } from '../config';
|
||||
|
||||
export const getTitle_server = async (params: GetTitleRequest) => {
|
||||
return serverFetch<GetTitleResponse>(`/title`, {
|
||||
method: 'GET',
|
||||
params
|
||||
params,
|
||||
baseURL: BASE_URL_V2
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue