Skip to content

Commit 5dd244f

Browse files
committed
Add missing getPathnames
1 parent af15af8 commit 5dd244f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/methods/topics/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ const getTopicPhotosPath = flow(getTopicPath, topicPath => `${topicPath}/photos`
1818
type TopicOrderBy = 'latest' | 'oldest' | 'position' | 'featured';
1919

2020
export const list = {
21+
getPathname: getTopicPath,
2122
handleRequest: ({
2223
page,
2324
perPage,
@@ -41,6 +42,7 @@ export const list = {
4142
};
4243

4344
export const get = {
45+
getPathname: getTopicPath,
4446
handleRequest: ({ topicIdOrSlug }: TopicIdOrSlug) => ({
4547
pathname: getTopicPath({ topicIdOrSlug }),
4648
query: {},
@@ -49,6 +51,7 @@ export const get = {
4951
};
5052

5153
export const getPhotos = {
54+
getPathname: getTopicPhotosPath,
5255
handleRequest: ({
5356
topicIdOrSlug,
5457
orientation,

0 commit comments

Comments
 (0)