Commit 3744bc32 by Torkel Ödegaard

fixed server side rendering

parent 3c8c5319
Subproject commit 8ed921240133c8638ecd0b2973bae36cdb5f6ccb Subproject commit a0c8d3fa6fdf8eb3624af130fe12244f0e8d5e01
...@@ -10,9 +10,8 @@ import ( ...@@ -10,9 +10,8 @@ import (
) )
func RenderToPng(c *middleware.Context) { func RenderToPng(c *middleware.Context) {
accountId := c.AccountId
queryReader := util.NewUrlQueryReader(c.Req.URL) queryReader := util.NewUrlQueryReader(c.Req.URL)
queryParams := "?render=1&accountId=" + strconv.FormatInt(accountId, 10) + "&" + c.Req.URL.RawQuery queryParams := "?render=1&userId=" + strconv.FormatInt(c.UserId, 10) + "&" + c.Req.URL.RawQuery
renderOpts := &renderer.RenderOpts{ renderOpts := &renderer.RenderOpts{
Url: c.Params("*") + queryParams, Url: c.Params("*") + queryParams,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment