mirror of
https://github.com/kovetskiy/mark.git
synced 2026-04-30 03:32:33 +00:00
Support for relative links (#33)
* Support for relative links Fixes #25 * Error logging fixes * Better regexp
This commit is contained in:
@@ -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, "/"),
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user