Hardcoding API address? #1263
jcszymansk
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I noticed that many (most?) frontends hardcode the API address to api.realworld.io, usually in some function that communicates with the API.
Perhaps it would be a good idea to require that implementations (both frontends and backends) put such things (also ports, database addresses and so on) in configuration files, or if it is impossible (I suspect this might be the case of 'vanilla JS' frontends) at least as separate from the rest of the code as technically possible?
Just my $0.02.
js.
Beta Was this translation helpful? Give feedback.
All reactions