artifacts/maps/maps.go
2024-07-31 23:09:11 +02:00

15 lines
374 B
Go

// Package maps holds functions that interact with the maps
package maps
import "git.stinnesbeck.com/nils/artifacts/api"
// GetAll will try to retrieve all map tiles
func GetAll() ([]Map, error) {
// these are the possible response codes, other than 200 OK
responseCodes := map[int]string{
404: "Maps not found.",
}
return api.Get[[]Map]("/maps/", responseCodes)
}