EtienneDx / git-mentor

A git server with built-in tools for teaching programming
MIT License
2 stars 0 forks source link

Load gmt-api URL from disk #43

Open EtienneDx opened 2 months ago

EtienneDx commented 2 months ago

The url to reach the gmt-api server should be provided dynamically, ideally from a file neighboring the index.html

Something like, by default:

/* gmt-web-app/public/config.json */
{
  "api_root": "localhost:3000"
}

This file will then be overriden during deployment.