mirror of
https://codeberg.org/SafeTwitch/safetwitch-backend.git
synced 2025-01-08 13:50:05 -05:00
Add comment
This commit is contained in:
parent
1fc11488e3
commit
57319cf544
1 changed files with 1 additions and 1 deletions
|
@ -13,6 +13,7 @@ import (
|
||||||
|
|
||||||
const twitchUrl = "https://gql.twitch.tv/gql"
|
const twitchUrl = "https://gql.twitch.tv/gql"
|
||||||
|
|
||||||
|
// useful funcs
|
||||||
func call(url, method string, body io.Reader) (*http.Response, error) {
|
func call(url, method string, body io.Reader) (*http.Response, error) {
|
||||||
req, err := http.NewRequest(method, url, body)
|
req, err := http.NewRequest(method, url, body)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -206,5 +207,4 @@ func GetDirectory(limit int, cursor string) ([]structs.Category, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
return parsedCategoryArray, nil
|
return parsedCategoryArray, nil
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue