Skip to content

Commit eed58ff

Browse files
fix: Fix Railway error.
1 parent 0f52b3a commit eed58ff

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

securetimenotes/src/main/java/securetimenotes/andrefelipebarros/securetimenotes/infra/security/SecurityConfiguration.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public SecurityFilterChain securityFilterChain(HttpSecurity httpSecurity) throws
3333
.csrf( csrf -> csrf.disable())
3434
.sessionManagement(session -> session.sessionCreationPolicy(SessionCreationPolicy.STATELESS))
3535
.authorizeHttpRequests(authorize -> authorize
36-
.requestMatchers(HttpMethod.POST, "auth/login").permitAll()
37-
.requestMatchers(HttpMethod.POST, "auth/register").permitAll()
36+
.requestMatchers(HttpMethod.POST, "/auth/login").permitAll()
37+
.requestMatchers(HttpMethod.POST, "/auth/register").permitAll()
3838
.requestMatchers("/h2-console/**").permitAll()
3939
// .requestMatchers("/swagger").permitAll()
4040
.anyRequest().authenticated()

securetimenotes/src/main/resources/application.properties

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ spring.h2.console.enabled=true
1111
# Spring Security
1212
spring.security.user.name=admin
1313
spring.security.user.password=123
14+
management.metrics.enable.process=false
1415

1516
# JWT
1617
jwt.secret=secretkey

0 commit comments

Comments
 (0)