Merge pull request #2768 from mattermost/gh-2759-fix-images
GH-2759 - fix path to file api
This commit is contained in:
commit
fa15c291b7
1 changed files with 1 additions and 1 deletions
|
@ -557,7 +557,7 @@ class OctoClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
async getFileAsDataUrl(boardId: string, fileId: string): Promise<string> {
|
async getFileAsDataUrl(boardId: string, fileId: string): Promise<string> {
|
||||||
let path = '/files/teams/' + this.teamId + '/' + boardId + '/' + fileId
|
let path = '/api/v1/files/teams/' + this.teamId + '/' + boardId + '/' + fileId
|
||||||
const readToken = Utils.getReadToken()
|
const readToken = Utils.getReadToken()
|
||||||
if (readToken) {
|
if (readToken) {
|
||||||
path += `?read_token=${readToken}`
|
path += `?read_token=${readToken}`
|
||||||
|
|
Loading…
Reference in a new issue