|
3 | 3 |
|
4 | 4 | Static content for [mc-api.net](https://mc-api.net). |
5 | 5 |
|
6 | | -**Notice:** A new templating system is being developed and slowly rolled out, you can view or contribute to these files [here](https://github.com/mc-api/static/tree/templating). Any changes made to this branch will not be deployed to production unless critical. |
| 6 | +Uses [hogan.js](http://twitter.github.io/hogan.js) for templating. |
7 | 7 |
|
8 | 8 | Contributing |
9 | 9 | ====== |
10 | 10 | Please do the following: |
11 | 11 | - Use spaces not tabs |
12 | 12 | - Submit a pull request |
| 13 | +- Document your code if possible |
13 | 14 |
|
14 | 15 | Once your pull request has been approved, it will be deployed to our servers. |
15 | 16 |
|
16 | | -**Variables** can be used within your page to display content which will be replaced by the server. |
17 | | - |
18 | | -Current variable list: |
19 | | -- ```#YEAR#``` - Displays the current year on the server |
20 | | -- ```#REGION#``` - Displays the region the server is in (US, EU) |
21 | | -- ```#FLAG#``` - Displays a flag representing the country the server is in |
22 | | -- ```#HOST#``` - Displays the hostname being used, for example ``eu.mc-api.net`` |
23 | | -- ```#GA#``` - Displays the google analytics tracking id for the region |
24 | | -- ```#VERSION#``` - Displays the backend version the api server is running |
25 | | - |
26 | 17 | Mirrors |
27 | 18 | ====== |
28 | | -| Hostname | Location | Host | Enum Constant | |
| 19 | +| Hostname | Location | Host | |
29 | 20 | | ------------- |:-------------:|:-----:|:---------:| |
30 | | -| [eu.mc-api.net](https://eu.mc-api.net) | London, England | [DigitalOcean](https://m.do.co/c/f8c7ada39e1b) | EU | |
31 | | -| [us.mc-api.net](https://us.mc-api.net) | New York City, USA | [DigitalOcean](https://m.do.co/c/f8c7ada39e1b) | US | |
| 21 | +| [eu.mc-api.net](https://eu.mc-api.net) | London, England | [DigitalOcean](https://m.do.co/c/f8c7ada39e1b) | |
| 22 | +| [us.mc-api.net](https://us.mc-api.net) | New York City, USA | [DigitalOcean](https://m.do.co/c/f8c7ada39e1b) | |
32 | 23 |
|
33 | 24 | There was previously an AU region, it may come back in the future however it was least used (less than 500 requests per month) |
0 commit comments