artifacts/maps/maps.go

15 lines
374 B
Go
Raw Permalink Normal View History

2024-07-31 21:09:11 +00:00
// 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)
}