refactor(SW-188): replace anon or auth procedure with serviceProcedure

This commit is contained in:
Chuma McPhoy
2024-08-13 15:59:07 +02:00
parent a1a0a73e3a
commit ed379202c8
7 changed files with 55 additions and 80 deletions
+1 -7
View File
@@ -16,10 +16,4 @@ export namespace endpoints {
}
}
export const getHotelEndpoint = (hotelId: string | number) =>
`${endpoints.v1.hotels}/${hotelId}` as const
export type Endpoint =
| endpoints.v0
| endpoints.v1
| ReturnType<typeof getHotelEndpoint>
export type Endpoint = endpoints.v0 | endpoints.v1