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
@@ -30,7 +30,7 @@ Page.getInitialProps = wrapInitialProps(async (ctx) => {
|
||||
const pageUrl = ctx.req.url
|
||||
const period = '2016-2017'
|
||||
const semester = 'spring'
|
||||
const schedule = await requestGet(createApiUrl(ctx.req, `/api/schedule?period=${period}&semester=${semester}`), {})
|
||||
const schedule = await requestGet(createApiUrl(`/api/schedule?period=${period}&semester=${semester}`), {})
|
||||
|
||||
return {
|
||||
schedule,
|
||||
|
||||
Reference in new issue
Block a user