~xenrox/10man-api

GraphQL API for 10man
functions: Substitute with "slices" package
Add option for setting the logging format
Use "log/slog" for logging

clone

read-only
https://git.xenrox.net/~xenrox/10man-api
read/write
git@git.xenrox.net:~xenrox/10man-api

You can also use your local clone with git send-email.

#10man-api

builds.sr.ht status

Code for 10man API.

#Configuration

Your config file should be placed at /etc/10man-api/config.

# http listen address
http-address 127.0.0.1:8080
# Connection string for the database (required)
connection-string postgresql://user:pass@localhost/db?sslmode=disable
# Comma separated list of steamID64 for users that should become an admin
admins STEAMID64_ADMIN1,STEAMID64_ADMIN2
# Comma separated list of maps
maps inferno,mirage