createApiUrl signature changed
This commit is contained in:
1 parent
b4da11e086
commit
d3b5b2d5c6
12 files changed
+15
-18
No files matched your search
+1
-1
@@ -98,7 +98,7 @@ const Page: NextPage<IProps> = props => (
|
||||
|
||||
Page.getInitialProps = wrapInitialProps(async (ctx) => {
|
||||
const pageUrl = ctx.req.url
|
||||
const res = await requestGet<any>(createApiUrl(ctx.req, `/api/albums`), {})
|
||||
const res = await requestGet<any>(createApiUrl(`/api/albums`), {})
|
||||
const items = res.items || []
|
||||
const albumCollections = albumsByYear(items)
|
||||
const title = 'Галерея'
|
||||
|
||||
Reference in new issue
Block a user