Skip to content

Commit fb869d6

Browse files
committed
Add a complex example
1 parent 85def89 commit fb869d6

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

src/main/resources/config.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,17 @@ routes:
3535
# The method type, described above.
3636
method: GET
3737
# Whether or not to use an auth key, default false for GET.
38+
authkey: false
39+
# You can get a little bit more complicated, too.
40+
# The response is wrapped in JSON, but you can add your own, too!
41+
# The JSON isn't validated, so don't worry about issues there.
42+
# This one gets some basic server info. Requires the "Server" eCloud expansion.
43+
server/info:
44+
response: |
45+
{
46+
"name": "%server_name%",
47+
"tps": "%server_tps_1%",
48+
"online": "%server_online_players%"
49+
}
50+
method: GET
3851
authkey: false

0 commit comments

Comments
 (0)