fix: #24 remove baseurl field
This commit is contained in:
parent
47303acffb
commit
023e189caa
12
package.json
12
package.json
@ -79,19 +79,9 @@
|
|||||||
"http://example.com:3000",
|
"http://example.com:3000",
|
||||||
"https://gitea.com"
|
"https://gitea.com"
|
||||||
],
|
],
|
||||||
"description": "The remote gitea instance's url. Should not end with a slash.",
|
"description": "The remote gitea instance's url. Append base url to this string eg. http://localhost:8080 or http://localhost/gitea",
|
||||||
"pattern": "^(https|http)://"
|
"pattern": "^(https|http)://"
|
||||||
},
|
},
|
||||||
"gitea.baseURL": {
|
|
||||||
"scope": "resource",
|
|
||||||
"type": "string",
|
|
||||||
"default": "",
|
|
||||||
"examples": [
|
|
||||||
"/gitea"
|
|
||||||
],
|
|
||||||
"description": "The base url of the Gitea instance.",
|
|
||||||
"pattern": ""
|
|
||||||
},
|
|
||||||
"gitea.owner": {
|
"gitea.owner": {
|
||||||
"scope": "resource",
|
"scope": "resource",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -77,8 +77,7 @@ export class Config implements ConfigTypes {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public get repoApiUrl(): string {
|
public get repoApiUrl(): string {
|
||||||
return this.instanceURL.replace(/\/$/, "") + "/" +
|
return this.instanceURL.replace(/\/$/, "") +
|
||||||
this.baseURL.replace(/\/$/, "") +
|
|
||||||
'/api/v1/repos/' +
|
'/api/v1/repos/' +
|
||||||
this.owner +
|
this.owner +
|
||||||
'/' + this.repo + '/issues';
|
'/' + this.repo + '/issues';
|
||||||
|
Loading…
Reference in New Issue
Block a user