Skip to content

Commit

Permalink
Update TimeController.java
Browse files Browse the repository at this point in the history
  • Loading branch information
GayeongKimm authored Aug 17, 2024
1 parent 5f7092a commit 1a12c74
Showing 1 changed file with 10 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@

import appJam.hackerton.appjam_27.domain.time.dto.req.TimeReq;
import appJam.hackerton.appjam_27.domain.time.service.TimeService;
import appJam.hackerton.appjam_27.domain.user.entity.UserEntity;
import appJam.hackerton.appjam_27.global.response.Response;
import appJam.hackerton.appjam_27.global.response.ResponseData;
import lombok.RequiredArgsConstructor;
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;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/time")
Expand All @@ -23,4 +24,9 @@ public Response saveTime(
return timeService.saveTime(timeReq);
}

@GetMapping
public ResponseData<List<UserEntity>> setTime(){
return timeService.setTime();
}

}

0 comments on commit 1a12c74

Please sign in to comment.