@@ -0,0 +1,1137 @@
+package io.teiler.api.endpoint;%0A%0Aimport static spark.Spark.get;%0A%0Aimport com.google.gson.Gson;%0Aimport com.google.gson.JsonArray;%0Aimport com.google.gson.JsonObject;%0Aimport io.teiler.server.util.GsonUtil;%0Aimport org.springframework.stereotype.Controller;%0A%0A/**%0A * Controller for the index endpoint%0A * %0A * @author lroellin%0A */%0A@Controller%0Apublic class IndexEndpointController implements EndpointController %7B%0A%0A    private Gson gson = GsonUtil.getHomebrewGson();%0A%0A    @Override%0A    public void register() %7B%0A        get(%22/%22, (req, res) -%3E %7B%0A            JsonObject json = new JsonObject();%0A            json.addProperty(%22documentation%22, %22doc.teiler.io%22);%0A%0A            JsonArray versions = new JsonArray();%0A            JsonObject v1 = new JsonObject();%0A            v1.addProperty(%22prefix%22, %22v1%22);%0A            v1.addProperty(%22status%22, %22current%22);%0A            versions.add(v1);%0A            JsonObject v2 = new JsonObject();%0A            v2.addProperty(%22prefix%22, %22v2%22);%0A            v2.addProperty(%22status%22, %22future%22);%0A            versions.add(v2);%0A            json.add(%22versions%22, versions);%0A%0A            return gson.toJson(json);%0A        %7D);%0A    %7D%0A%0A%7D%0A

Add index endpoint