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",
|
||||
"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)://"
|
||||
},
|
||||
"gitea.baseURL": {
|
||||
"scope": "resource",
|
||||
"type": "string",
|
||||
"default": "",
|
||||
"examples": [
|
||||
"/gitea"
|
||||
],
|
||||
"description": "The base url of the Gitea instance.",
|
||||
"pattern": ""
|
||||
},
|
||||
"gitea.owner": {
|
||||
"scope": "resource",
|
||||
"type": "string",
|
||||
|
@ -77,8 +77,7 @@ export class Config implements ConfigTypes {
|
||||
}
|
||||
|
||||
public get repoApiUrl(): string {
|
||||
return this.instanceURL.replace(/\/$/, "") + "/" +
|
||||
this.baseURL.replace(/\/$/, "") +
|
||||
return this.instanceURL.replace(/\/$/, "") +
|
||||
'/api/v1/repos/' +
|
||||
this.owner +
|
||||
'/' + this.repo + '/issues';
|
||||
|
Loading…
Reference in New Issue
Block a user