| 102 | === Getting a list of .js files === |
| 103 | Returns all full Vfs paths ending with *.js loaded into the Vfs. |
| 104 | {{{ |
| 105 | http://127.0.0.1:9000/EnumVfsJSFiles |
| 106 | }}} |
| 107 | |
| 108 | Returns (shortened) |
| 109 | {{{ |
| 110 | ["globalscripts/Math.js","globalscripts/Technologies.js","hwdetect/hwdetect.js","hwdetect/test.js","gui/aiconfig/aiconfig.js","gui/civinfo/civinfo.js"] |
| 111 | }}} |
| 112 | |
| 113 | === Getting a file === |
| 114 | Returns a whole file without any formatting (no JSON). |
| 115 | {{{ |
| 116 | http://127.0.0.1:9000/GetFile?filename=globalscripts/Math.js |
| 117 | }}} |
| 118 | |
| 119 | Returns: |
| 120 | A File as plaintext. |
| 121 | |
| 122 | Arguments: |
| 123 | * filename A full Vfs path to a file |
| 124 | |