package io.teiler.api.endpoint;

import static spark.Spark.get;
import static spark.Spark.post;

import com.google.gson.Gson;
import io.teiler.api.service.GroupService;
import io.teiler.server.dto.Group;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;


@Controller
public class GroupEndpoint implements Endpoint {

    private Gson gson = new Gson();

    private static final Logger LOGGER = LoggerFactory.getLogger(GroupEndpoint.class);

    private static final String GROUP_ID_HEADER = "X-Teiler-GroupID";

    @Autowired
    private GroupService groupService;

    @Override
    public void register() {
        post("/v1/group", (req, res) -> {
            Group requestGroup = gson.fromJson(req.body(), Group.class);
            return groupService.createGroup(requestGroup.getName());
        });

        get("/v1/group", (req, res) -> {
            String authorizationHeader = req.headers(GROUP_ID_HEADER);
            return groupService.viewGroup(authorizationHeader);
        });
    }
}

@@ -201,65 +201,8 @@
 up;%0A
-import org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0A
 impo
@@ -415,96 +415,8 @@
 );%0A%0A
-    private static final Logger LOGGER = LoggerFactory.getLogger(GroupEndpoint.class);%0A%0A
     

Remove unused LOGGER