Skip to content

Commit 703bf16

Browse files
committed
fix: add /api/v1 to admin page url
1 parent d78203f commit 703bf16

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

.idea/sqldialects.xml

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hangsha/src/main/kotlin/com/team1/hangsha/config/SecurityConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class SecurityConfig(
7575
"/oauth2/authorization/**",
7676
"/login/oauth2/code/**",
7777
).permitAll()
78-
.requestMatchers("/admin/**").hasRole("ADMIN")
78+
.requestMatchers("/api/v1/admin/**").hasRole("ADMIN")
7979
.anyRequest().authenticated()
8080
}
8181
.addFilterBefore(jwtAuthenticationFilter, UsernamePasswordAuthenticationFilter::class.java)

hangsha/src/main/kotlin/com/team1/hangsha/event/controller/EventSyncController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import org.springframework.web.server.ResponseStatusException
2121
import org.springframework.web.multipart.MultipartFile
2222

2323
@RestController
24-
@RequestMapping("/admin/events")
24+
@RequestMapping("/api/v1/admin/events")
2525
class EventSyncController(
2626
private val eventSyncService: EventSyncService,
2727
private val eventRepository: EventRepository,

0 commit comments

Comments
 (0)