mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-14 00:01:03 +00:00
204ee2ef86
The server's src and tests together are past 570,000 lines and the test typecheck needs about 4.3 GB, over Node's default heap; it now gets 8 GB like the test jobs. Forty new client files are formatted, and the react-hooks/refs baseline drops by the one warning a split hook removed.
12 lines
471 B
TypeScript
12 lines
471 B
TypeScript
import type { TourDetailResponse, TourSkiClassificationRequest } from '@trek/shared';
|
|
import apiClient from './client';
|
|
|
|
/** SKI-02: a ski track classified again, its discipline and cross-country technique. */
|
|
export const tourSkiApi = {
|
|
classify: (
|
|
tripId: number | string,
|
|
placeId: number | string,
|
|
body: TourSkiClassificationRequest
|
|
): Promise<TourDetailResponse> => apiClient.put(`/trips/${tripId}/tours/${placeId}/ski`, body).then((r) => r.data),
|
|
};
|