12996e4a
client: add config option to override API origin
If the config file contains an "api-origin" key for a service, prefer it instead of "origin". This allows users to directly point the Python frontend to the Go backend for local development, without having to setup a reverse proxy. This is the Go port of [1]. While at it, use GetOrigin for symmetry with the Python code. [1]: https://git.sr.ht/~sircmpwn/meta.sr.ht/commit/6c2ee03923fe65423a2c55e6648f555c08db827a
Simon Ser <contact@emersion.fr> — 2020-11-30 11:24:42 UTC
Commit 12996e4a18937dc3938bc093456c9b1453883a56 —
view raw patch
Parent(s):
52d6dc99
| File | Status | + | − |
|---|---|---|---|
client/graphql.go
|
M | +5 | -2 |