import { CrudClient } from "../infra/crud-client"
import type { ApiClientOptions } from "../infra/client"
import type { ApiPath } from "../infra/types"

export const REASON_ROUTES = {
    INDEX: "/api/reasons",
    BY_ID: "/api/reasons/{id}",
} as const satisfies Record<string, ApiPath>

export class ReasonsClient extends CrudClient<
    typeof REASON_ROUTES.INDEX,
    typeof REASON_ROUTES.BY_ID
> {
    constructor(baseUrl?: string, defaultOptions?: ApiClientOptions) {
        super(baseUrl, defaultOptions, REASON_ROUTES.INDEX, REASON_ROUTES.BY_ID)
    }
}
