hunk.code_window: // @failure 400 "Invalid request"
   // @failure 422 "Invalid Credentials"
   // @failure 500 "Server error"
   // @router /auth [post]
   func (handler *Handler) authenticate(w http.ResponseWriter, r *http.Request) *httperror.HandlerError {
   	var payload authenticatePayload
   	err := request.DecodeAndValidateJSONPayload(r, &payload)
   	if err != nil {
   		return &httperror.HandlerError{http.StatusBadRequest, "Invalid request payload", err}
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit: func (handler *Handler) authenticate(rw http.ResponseWriter, r *http.Request) *httperror.HandlerError {
  
hunk.file_path: api/http/handler/auth/authenticate.go
hunk.type: replace
file: {
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
      {
        "name": "Launch",
        "type": "go",
        "request": "launch",
        "mode": "debug",
        "program": "${workspaceRoot}/api/cmd/portainer/main.go",
        "cwd": "${workspaceRoot}",
        "env": {},
        "showLog": true,
        "args": ["--data", "${env:HOME}/portainer-data", "--assets", "${workspaceRoot}/dist"]
      }
    ]
  }
  