A small program used to get release notes from Mojang server. And convert it to the flow document.
Install
yarn install
rm -rf ./node_modules/consola/types
Build
yarn build
Configuration
cd build/
vim(vi) ./config.json
Run (In Production Mode)
node ./index.js Or yarn run
Configuration File Description
It is important to modify the config.json
- checkInterval: News check interval, in millisecond.
- port: Server port
I provided two routes to get the result from the program
- "http://[ADDRESS]:[PORT]/rest/api/rN/": This is the default route to get the notes, by default, it will return all of them.
- "http://[ADDRESS]:[PORT]/rest/api/rN/:type": This api has a custom parameter "type", you can specify which release channel you wanna fetch.