update code
This commit is contained in:
parent
eeb05fa7d1
commit
a0d5dbab6c
@ -1,8 +1,8 @@
|
||||
name: Services
|
||||
version: 0.1.0
|
||||
|
||||
# authors:
|
||||
# - name <email@example.com>
|
||||
authors:
|
||||
- Alexander Popov <iiiypuk@fastmail.fm>
|
||||
|
||||
# description: |
|
||||
# Short description of ServicesCheck
|
||||
|
@ -8,7 +8,7 @@ CONFIG.class
|
||||
APP = {version: "1.0.0"}
|
||||
|
||||
get "/" do
|
||||
render "public/index.html"
|
||||
render "#{__DIR__}/layouts/index.ecr"
|
||||
end
|
||||
|
||||
Kemal.config.env = "development"
|
||||
|
@ -1,6 +1,12 @@
|
||||
require "json"
|
||||
require "http/client"
|
||||
|
||||
# Return latest Minecraft version
|
||||
#
|
||||
# Output:
|
||||
# ```
|
||||
# 1.19.2
|
||||
# ```
|
||||
get "/api/v1.0/minecraft_version" do |env|
|
||||
minecraft_url = "https://launchermeta.mojang.com/mc/game/version_manifest_v2.json"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user