package com.hclsoftware.sso.kerberos.controller;

import com.hclsoftware.sso.kerberos.dto.LoginDto;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class TestController {

    @PostMapping
    public ResponseEntity<LoginDto> test(@RequestBody LoginDto loginDto){
        return new ResponseEntity<>(new LoginDto("SuccessUser", "SuccessPassword"), HttpStatus.OK);
    }
}
