Support for relative links (#33)

* Support for relative links

Fixes #25

* Error logging fixes

* Better regexp
This commit is contained in:
Juho Saarinen
2020-11-30 09:47:46 +02:00
committed by GitHub
parent bcf2acb39f
commit 63fe97beaa
6 changed files with 150 additions and 6 deletions

View File

@@ -26,7 +26,8 @@ type API struct {
// it's deprecated accordingly to Atlassian documentation,
// but it's only way to set permissions
json *gopencils.Resource
json *gopencils.Resource
BaseURL string
}
type PageInfo struct {
@@ -87,8 +88,9 @@ func NewAPI(baseURL string, username string, password string) *API {
}
return &API{
rest: rest,
json: json,
rest: rest,
json: json,
BaseURL: strings.TrimSuffix(baseURL, "/"),
}
}