Skip to content

Latest commit

 

History

History
21 lines (11 loc) · 578 Bytes

README.md

File metadata and controls

21 lines (11 loc) · 578 Bytes

Dogebox reflector service

This service is a basic in-memory key-pair cache. It is used by the Dogebox (by default) to persist its local, internal IP address somewhere that the users client can find it once the Dogebox has switched networks.

API

GET /:token

Fetch the IP submitted via token. Is a one-shot fetch, will be removed after you have retrieved it.

Return 200 { "ip": "1.2.3.4" } if found.

Returns 404 if not found.

POST /

Required body: { "token": "abc", "ip": "1.2.3.4" }

Returns 201 on create.

Rate limited to 1 per minute via IP.