summaryrefslogtreecommitdiff
path: root/api/main.py
AgeCommit message (Collapse)Author
2020-10-27Remove api prefix from pathFabian Mastenbroek
This change removes the `api` prefix required by the API server in the path, given that we have started to host the API on its own domain (api.opendc.org) and thus does not need a prefix.
2020-10-27Enable CORS for non-local deploymentsFabian Mastenbroek
This change enables CORS for non-local deployment in order to allow other domains to make requests from the browser to the OpenDC API.
2020-10-26Use custom JSON encoder for FlaskFabian Mastenbroek
2020-08-24Make frontend independent of APIFabian Mastenbroek
This change makes the frontend independent of the API by removing the static file serving logic from the API server. Instead, we can serve the frontend as static HTML over CDNs.
2020-08-24Rename web-server to APIFabian Mastenbroek
This change renames the web-server component to API in order to be more descriptive of its role. The OpenDC API bridges between the frontend on one side and the database and simulator on the other side.