18 lines
525 B
Go
18 lines
525 B
Go
package main
|
|
|
|
import (
|
|
"encoding/json"
|
|
"net/http"
|
|
)
|
|
|
|
func handleVersion(w http.ResponseWriter, r *http.Request) {
|
|
w.Header().Set("Content-Type", "application/json")
|
|
|
|
json.NewEncoder(w).Encode(map[string]interface{}{
|
|
"api_version": Version,
|
|
"latest_bridge_version": "1.6.1",
|
|
"download_url": "https://inou.com/download/inou.mcpb",
|
|
"update_message": "A newer version of the Inou extension is available. Download from https://inou.com/download/inou.mcpb and double-click to install.",
|
|
})
|
|
}
|