Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
wb
gocrawlhq
Commits
5ba59586
Commit
5ba59586
authored
Dec 22, 2021
by
Corentin Barreau
⚜
Browse files
Modify: add /api/ prefix to endpoints
parent
477a662f
Changes
1
Hide whitespace changes
Inline
Side-by-side
gocrawlhq.go
View file @
5ba59586
...
...
@@ -38,9 +38,9 @@ func Init(key, secret, project, HQAddress string) (c *Client, err error) {
return
c
,
err
}
DiscoveredEndpoint
.
Path
=
path
.
Join
(
DiscoveredEndpoint
.
Path
,
"discovered"
)
FinishedEndpoint
.
Path
=
path
.
Join
(
FinishedEndpoint
.
Path
,
"finished"
)
FeedEndpoint
.
Path
=
path
.
Join
(
FeedEndpoint
.
Path
,
"feed"
,
c
.
Project
)
DiscoveredEndpoint
.
Path
=
path
.
Join
(
DiscoveredEndpoint
.
Path
,
"api"
,
"discovered"
)
FinishedEndpoint
.
Path
=
path
.
Join
(
FinishedEndpoint
.
Path
,
"api"
,
"finished"
)
FeedEndpoint
.
Path
=
path
.
Join
(
FeedEndpoint
.
Path
,
"api"
,
"feed"
,
c
.
Project
)
return
c
,
nil
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment