add jsexport for configs

add dynamic api server configuration