Add json api for links
Add baseurl and rooturl for prose