updates
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { CrudClient } from "../infra/crud-client"
|
||||
import type { ApiClientOptions } from "../infra/client"
|
||||
import type { ApiPath } from "../infra/types"
|
||||
|
||||
export const PAYMENT_MODE_ROUTES = {
|
||||
INDEX: "/api/payment-mode",
|
||||
BY_ID: "/api/payment-mode/{id}",
|
||||
} as const satisfies Record<string, ApiPath>
|
||||
|
||||
export class PaymentModesClient extends CrudClient<
|
||||
typeof PAYMENT_MODE_ROUTES.INDEX,
|
||||
typeof PAYMENT_MODE_ROUTES.BY_ID
|
||||
> {
|
||||
constructor(baseUrl?: string, defaultOptions?: ApiClientOptions) {
|
||||
super(baseUrl, defaultOptions, PAYMENT_MODE_ROUTES.INDEX, PAYMENT_MODE_ROUTES.BY_ID)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user