Sorry if this is a stupid question, but I have little experience developing applications. I am developing my own application that makes an ajax call for my backend (public API). My question is: Where should I save the configuration for ajax call? At the moment, I created my own static class called ConfigData, and in my application I call this class as
ConfigData.apiUrl
And in my ConfigData class I have
public static String apiUrl= "www.mysite.com/public/api";
But is there a better method?
source
share