Skip to content

Commit

Permalink
refactor: AdminService 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
seokjin8678 committed Nov 14, 2023
1 parent 58a88f3 commit 11806b8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 118 deletions.
108 changes: 0 additions & 108 deletions backend/src/main/java/com/festago/admin/application/AdminService.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.festago.presentation;

import com.festago.admin.application.AdminService;
import com.festago.admin.dto.AdminResponse;
import com.festago.auth.annotation.Admin;
import com.festago.auth.application.AdminAuthService;
import com.festago.auth.dto.AdminLoginRequest;
Expand Down Expand Up @@ -54,7 +52,6 @@ public class AdminController {
private final FestivalService festivalService;
private final StageService stageService;
private final TicketService ticketService;
private final AdminService adminService;
private final AdminAuthService adminAuthService;
private final SchoolService schoolService;
private final Optional<BuildProperties> properties;
Expand Down Expand Up @@ -147,13 +144,6 @@ private String getCookie(String token) {
.build().toString();
}

@GetMapping("/data")
public ResponseEntity<AdminResponse> adminData() {
AdminResponse response = adminService.getAdminResponse();
return ResponseEntity.ok()
.body(response);
}

@GetMapping("/version")
public ResponseEntity<String> getVersion() {
return properties.map(it -> ResponseEntity.ok(it.getTime().atZone(ZoneId.of("Asia/Seoul")).toString()))
Expand Down

0 comments on commit 11806b8

Please sign in to comment.