Skip to content

Commit

Permalink
Fix: 운영 환경 swagger disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
kwonssshyeon committed Aug 19, 2024
1 parent 276a915 commit fc6014c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
import io.swagger.v3.oas.models.security.SecurityScheme;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;

@Profile({"dev", "prod", "local"})
@Configuration
public class SwaggerConfig {
@Bean
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

import com.gdsc_knu.official_homepage.annotation.TokenMember;
import com.gdsc_knu.official_homepage.authentication.jwt.JwtMemberDetail;
import com.gdsc_knu.official_homepage.dto.role.UserRoleRequest;
import com.gdsc_knu.official_homepage.service.PermissionSerivce;
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
Expand All @@ -17,6 +17,7 @@
public class RoleController {
private final PermissionSerivce permissionSerivce;

@Hidden
@PatchMapping("core")
@Operation(summary="❗core 권한으로 테스트하기 위한 임시 API ❗", description = "매번 sql update 하기 번거로워서 임시로 만듦")
public ResponseEntity<String> coreMember(@TokenMember JwtMemberDetail jwtMemberDetail){
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.gdsc_knu.official_homepage.controller.admin;

import com.gdsc_knu.official_homepage.service.MailService;
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
Expand All @@ -16,6 +17,7 @@
public class MailController {
private final MailService mailService;

@Hidden
@GetMapping("/mail")
@Operation(summary = "최종 합/불 지원자마다 메일 발송 API")
public void mailTest() {
Expand Down

0 comments on commit fc6014c

Please sign in to comment.