mirror of
https://github.com/gromlab-ru/slm-design.git
synced 2026-08-22 15:30:16 +03:00
15 lines
629 B
TypeScript
15 lines
629 B
TypeScript
|
|
import { HttpClient } from '@biocad/{{name.kebabCase}}-rest-api-sdk'
|
||
|
|
|
||
|
|
import {
|
||
|
|
{{name.screamingSnakeCase}}_REST_API_BASE_URL,
|
||
|
|
{{name.screamingSnakeCase}}_REST_API_TIMEOUT_MS
|
||
|
|
} from './config/{{name.kebabCase}}-rest-api.config'
|
||
|
|
import { {{name.camelCase}}RestApiFetch } from './lib/{{name.kebabCase}}-rest-api-fetch'
|
||
|
|
|
||
|
|
/** Транспортный HTTP-клиент {{name.pascalCase}} REST API. */
|
||
|
|
export const {{name.camelCase}}HttpClient = new HttpClient({
|
||
|
|
baseUrl: {{name.screamingSnakeCase}}_REST_API_BASE_URL,
|
||
|
|
customFetch: {{name.camelCase}}RestApiFetch,
|
||
|
|
timeout: {{name.screamingSnakeCase}}_REST_API_TIMEOUT_MS
|
||
|
|
})
|