aboutsummaryrefslogtreecommitdiff
path: root/pkg/api/api0/api.go
AgeCommit message (Collapse)Author
2023-01-05pkg/api/api0: Export request version helperspg9182
2022-11-27pkg/api/api0: Implement geo metricspg9182
2022-11-21all: Upgrade github.com/pg9182/ip2x to v0.1.1pg9182
This is a larger update since I rewrote ip2x.
2022-11-20pkg/api/api0: Add GetRegion fieldpg9182
2022-11-20pkg/api/api0: Add LookupIP fieldpg9182
2022-10-23all: Switch go github.com/klauspost/compress/gzippg9182
It's much faster.
2022-10-21all: pg9182 -> r2northstarpg9182
2022-10-19pkg/api/api0: Add metricspg9182
2022-10-19pkg/api/api0: Check length during launcher version extractionpg9182
2022-10-16pkg/api/api0: Store launcher version in server listpg9182
2022-10-15pkg/api/api0: Explicitly route /player endpointspg9182
2022-10-15pkg/api/api0: Rework error responsespg9182
* NorthstarLauncher expects the error field to be an object with enum and msg fields as strings, and often crashes if this isn't the case. * Shorter code, less duplication.
2022-10-15pkg/api/api0: Implement bad words filter optionpg9182
2022-10-15pkg/api/api0: Implement /client/auth_with_serverpg9182
2022-10-15pkg/api/api0: Implement /server/remove_serverpg9182
2022-10-15pkg/api/api0: Implement all server update endpointspg9182
Share the same handler, conditionally allowing different fields to be updated, controlling whether create/update is enabled based on the endpoint, and (re)verifying servers whenever it results in a new server being created.
2022-10-15pkg/api/api0: Refactor server list updatespg9182
* Merge update and replace into ServerHybridUpdatePut. * Integrate limits into ServerList itself. * Allow new servers to replace live servers if gameserver and authserver IP and port are identical. * Move server token generation into ServerList.
2022-10-15pkg/api/api0: Implement /server/add_serverpg9182
2022-10-15pkg/api/api0: Implement /client/serverspg9182
And it's _fast_, even with thousands of servers and hundreds of requests per second.
2022-10-14pkg/api/api0: Implement /client/origin_authpg9182
2022-10-14pkg/api/api0: Append newline to JSON responsespg9182
Makes it nicer to use with tools like curl.
2022-10-13pkg/api/api0: Implement version gatepg9182
2022-10-13pkg/api/api0: Implement /client/auth_with_selfpg9182
2022-10-13pkg/api/api0: Implement /client/mainmenupromospg9182
Also support varying it so things like version-specific messages can be shown.
2022-10-13pkg/api/api0: Clear ETag when gzipping responsespg9182
2022-10-13pkg/api/api0: Fix regression in bff9a5ca7c1ed1ab0af80d9cad17b63672f9a9fcpg9182
/player/ endpoints fall through.
2022-10-13pkg/api/api0: Implement account endpointspg9182
* POST /accounts/write_persistence?id&serverId multipart(file.pdata) * GET /accounts/get_username?uid * GET /accounts/lookup_uid?username
2022-10-13pkg/api/api0: Add AccountStorage interfacepg9182
2022-10-13pkg/api/api0: Don't write body on error for HEAD requestspg9182
2022-10-13pkg/api/api0: Minor improvementspg9182
2022-10-13pkg/api/api0, web: Implement static site handler, move redirectspg9182
2022-10-13pkg/api/api0: Add NotFound handlerpg9182
2022-10-13pkg/api/api0: Implement player info endpointspg9182
2022-10-13pkg/api/api0: Implement base handler and some helperspg9182
2022-10-02pkg/api/api0: Initial stubpg9182