Skip to content

Commit

Permalink
Merge pull request #28 from levigo/feat/NF-1032-remove-swagger-ui-fro…
Browse files Browse the repository at this point in the history
…m-oo-staging-and-prod

feat(NF-1032): make swagger ui configurable
  • Loading branch information
ebidosm authored Oct 30, 2023
2 parents 473ca88 + 4f4ccf1 commit 1f6ec88
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package com.neverpile.common.openapi.rest;

import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.EnableWebMvc;

@Configuration
@EnableWebMvc
@ConditionalOnProperty(name = "neverpile.swagger-ui.enabled", havingValue = "true")
public class OpenApiAutoConfiguration {
@Bean
public OpenApiDefinitionResource openApiDefinitionResource() {
Expand Down

0 comments on commit 1f6ec88

Please sign in to comment.