hardcoded page url
This commit is contained in:
1 parent
7599e9d41f
commit
962780aeb1
6 files changed
+6
-6
No files matched your search
@@ -27,7 +27,7 @@ const Page = (props) => (
|
||||
)
|
||||
|
||||
Page.getInitialProps = async (ctx) => {
|
||||
const pageUrl = ctx.req.url
|
||||
const pageUrl = '/gallery'
|
||||
const id = ctx.query.album
|
||||
const apiUrl = `http://localhost:3000/api/albums/${id}`
|
||||
const res = await axios.get(apiUrl)
|
||||
|
||||
Reference in new issue
Block a user