package com.google.step.coffee.servlets;

import com.google.step.coffee.*;
import com.google.step.coffee.entity.User;

import javax.servlet.annotation.WebServlet;
import java.io.IOException;

@WebServlet("/api/auth")
public class AuthServlet extends JsonServlet {
  private static class Response {
    private String logoutUrl;
    private User user;

    public Response() {
      this.logoutUrl = UserManager.getLogoutUrl();
      this.user = UserManager.getCurrentUser();
    }

    public String getLogoutUrl() {
      return logoutUrl;
    }

    public User getUser() {
      return user;
    }
  }

  public Object get(JsonServletRequest request) throws IOException, HttpError {
    PermissionChecker.ensureLoggedIn();
    return new Response();
  }
}

@@ -599,16 +599,28 @@
  %7D%0A  %7D%0A%0A
+  @Override%0A
   public

Add removed Override back