노수봉/spring/demo/src/main/java/kr/eddi/demo/controller/vue/rpg/thirtyoneth/RpgCharacterController.java
package kr.eddi.demo.controller.vue.rpg.thirtyoneth;

import kr.eddi.demo.entity.vue.rpg.Character;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
@RequestMapping("/31th/rpg-game")
@CrossOrigin(origins = "http://localhost:8080", allowedHeaders = "*")
public class RpgCharacterController {

    Character character;

    @GetMapping("/character-status")
    public Character CharacterStatus () {
        log.info("CharacterStatus()");

        character = new Character(1,50,30,0,10,
        10,10,10,10,10,10,0,
                10,0,0,"모험가");

        return character;
    }
}
