/infrapi

API gateway for infrared

Primary LanguageGo

Infrapi - API gateway for infrared

utility for lhridder/infrared

Global config.yml

apiBind: :5000
redis:
  host: localhost
  pass:
  db: 0

API

Routes examples

GET / will return 200(OK)

GET /proxies will return

[
"config",
"config2"
]

GET /proxies/{name} will return

{
"domainNames": ["play.example.org"],
"proxyTo": "backend.example.org:25566"
}

POST /proxies/{name} with body

{
"domainNames": ["play.example.org"],
"proxyTo": "backend.example.org:25566"
}

will return 200(ok)

DELETE /proxies/{name} will return 200(OK)

Used sources