Skip to content

Commit

Permalink
Merge pull request #22 from NV-Systems-Company/revert-17-feature/2021…
Browse files Browse the repository at this point in the history
…0827_TrinhNX#update_api_login

Revert "Adding API docs using Swagger"
  • Loading branch information
webvang authored Aug 29, 2021
2 parents 1145305 + 69efc2c commit 8d38ae9
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 117 deletions.
19 changes: 1 addition & 18 deletions backend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -170,25 +170,8 @@
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy-console</artifactId>
</dependency>


<!-- https://mvnrepository.com/artifact/org.projectlombok/lombok -->
<!-- TODO: Check the homepage to install lombok with your IDE -->
<!-- https://projectlombok.org/setup/overview -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.20</version>
<scope>provided</scope>
</dependency>
</dependency>

<!--For documentation API-->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.5.10</version>
</dependency>
</dependencies>

<build>
Expand Down
27 changes: 0 additions & 27 deletions backend/src/main/java/org/vaccom/vcmgt/constant/AppConstant.java

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Service;

@Service
public interface JwtTokenProvider {

public String generateToken(Authentication authentication, int exprireIn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.springframework.security.config.annotation.authentication.builders.AuthenticationManagerBuilder;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.builders.WebSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
import org.springframework.security.config.http.SessionCreationPolicy;
Expand Down Expand Up @@ -82,9 +81,4 @@ protected void configure(HttpSecurity http) throws Exception {
http.addFilterBefore(jwtAuthenticationFilter(), UsernamePasswordAuthenticationFilter.class);
}

@Override
public void configure(WebSecurity web) throws Exception {
// Ignore api docs link for swagger v3
web.ignoring().antMatchers("/v3/api-docs/**", "/swagger-ui.html", "/swagger-ui/**");
}
}

This file was deleted.

0 comments on commit 8d38ae9

Please sign in to comment.