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 SHOP_RECOMMENDATION_ROUTES = {
|
||||
INDEX: "/api/shop-recommendations",
|
||||
BY_ID: "/api/shop-recommendations/{id}",
|
||||
} as const satisfies Record<string, ApiPath>
|
||||
|
||||
export class ShopRecommendationsClient extends CrudClient<
|
||||
typeof SHOP_RECOMMENDATION_ROUTES.INDEX,
|
||||
typeof SHOP_RECOMMENDATION_ROUTES.BY_ID
|
||||
> {
|
||||
constructor(baseUrl?: string, defaultOptions?: ApiClientOptions) {
|
||||
super(baseUrl, defaultOptions, SHOP_RECOMMENDATION_ROUTES.INDEX, SHOP_RECOMMENDATION_ROUTES.BY_ID)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user