Skip to content
This repository was archived by the owner on Sep 5, 2025. It is now read-only.

Commit 9b1f2a2

Browse files
authored
chore(ZMSKVR-773): change routing to buergeransicht1 (#212)
1 parent 6ca1a43 commit 9b1f2a2

8 files changed

Lines changed: 29 additions & 28 deletions

File tree

.vscode/settings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"java.configuration.updateBuildConfiguration": "automatic"
2+
"java.configuration.updateBuildConfiguration": "automatic",
3+
"java.compile.nullAnalysis.mode": "disabled"
34
}

apigateway/src/main/java/de/muenchen/zms/configuration/GuiConfiguration.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,16 @@ public class GuiConfiguration {
2323
public RouterFunction<ServerResponse> indexRouter(@Value("classpath:/static/index.html") final Resource indexHtml) {
2424
log.debug("Location of gui entry point: {}", indexHtml);
2525

26-
// Serve index.html at /buergeransicht
27-
RouterFunction<ServerResponse> indexRoute = route(GET("/buergeransicht"),
26+
// Serve index.html at /buergeransicht1
27+
RouterFunction<ServerResponse> indexRoute = route(GET("/buergeransicht1"),
2828
request -> ok().contentType(MediaType.TEXT_HTML).bodyValue(indexHtml));
2929

30-
// Serve index.html at /buergeransicht/
31-
RouterFunction<ServerResponse> indexRouteWithSlash = route(GET("/buergeransicht/"),
30+
// Serve index.html at /buergeransicht1/
31+
RouterFunction<ServerResponse> indexRouteWithSlash = route(GET("/buergeransicht1/"),
3232
request -> ok().contentType(MediaType.TEXT_HTML).bodyValue(indexHtml));
3333

34-
// Serve static files from /buergeransicht/**
35-
RouterFunction<ServerResponse> staticResourceRoute = resources("/buergeransicht/**",
34+
// Serve static files from /buergeransicht1/**
35+
RouterFunction<ServerResponse> staticResourceRoute = resources("/buergeransicht1/**",
3636
new ClassPathResource("static/"));
3737

3838
// Combine the routes

apigateway/src/main/java/de/muenchen/zms/configuration/WebConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ public class WebConfig implements WebMvcConfigurer {
1212

1313
@Override
1414
public void addResourceHandlers(ResourceHandlerRegistry registry) {
15-
registry.addResourceHandler("/buergeransicht/**")
16-
.addResourceLocations("classpath:/public/buergeransicht/")
15+
registry.addResourceHandler("/buergeransicht1/**")
16+
.addResourceLocations("classpath:/public/buergeransicht1/")
1717
.setCachePeriod(3600)
1818
.resourceChain(true)
1919
.addResolver(new PathResourceResolver() {

apigateway/src/main/resources/application-local.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ spring:
2525
- id: backend
2626
uri: "http://zms.ddev.site/terminvereinbarung/api/citizen"
2727
predicates:
28-
- Path=/buergeransicht/api/backend/**
28+
- Path=/buergeransicht1/api/backend/**
2929
filters:
30-
- RewritePath=/buergeransicht/api/backend/(?<segment>.*), /terminvereinbarung/api/citizen/$\{segment}
30+
- RewritePath=/buergeransicht1/api/backend/(?<segment>.*), /terminvereinbarung/api/citizen/$\{segment}
3131
- RemoveResponseHeader=WWW-Authenticate
3232
default-filters:
3333
- RemoveResponseHeader=Expires

apigateway/src/main/resources/application.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ spring:
3636
- id: backend
3737
uri: http://zmscitizenapi:8080/terminvereinbarung/api/citizen
3838
predicates:
39-
- Path=/buergeransicht/api/backend/**
39+
- Path=/buergeransicht1/api/backend/**
4040
filters:
41-
- RewritePath=/buergeransicht/api/backend/(?<segment>.*), /terminvereinbarung/api/citizen/$\{segment}
41+
- RewritePath=/buergeransicht1/api/backend/(?<segment>.*), /terminvereinbarung/api/citizen/$\{segment}
4242
- RemoveResponseHeader=WWW-Authenticate
4343
default-filters:
4444
- RemoveResponseHeader=Expires

frontend/.env.example

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
VUE_APP_ZMS_API_BASE=http://localhost:8080
2-
VUE_APP_ZMS_API_PROVIDERS_AND_SERVICES_ENDPOINT=/buergeransicht/api/backend/offices-and-services/
3-
VUE_APP_ZMS_API_CALENDAR_ENDPOINT=/buergeransicht/api/backend/available-days/
4-
VUE_APP_ZMS_API_AVAILABLE_TIME_SLOTS_ENDPOINT=/buergeransicht/api/backend/available-appointments/
5-
VUE_APP_ZMS_API_RESERVE_APPOINTMENT_ENDPOINT=/buergeransicht/api/backend/reserve-appointment/
6-
VUE_APP_ZMS_API_APPOINTMENT_ENDPOINT=/buergeransicht/api/backend/appointment/
7-
VUE_APP_ZMS_API_UPDATE_APPOINTMENT_ENDPOINT=/buergeransicht/api/backend/update-appointment/
8-
VUE_APP_ZMS_API_CONFIRM_RESERVATION_ENDPOINT=/buergeransicht/api/backend/confirm-appointment/
9-
VUE_APP_ZMS_API_CANCEL_APPOINTMENT_ENDPOINT=/buergeransicht/api/backend/cancel-appointment/
10-
VUE_APP_ZMS_API_PRECONFIRM_RESERVATION_ENDPOINT=/buergeransicht/api/backend/preconfirm-appointment/
11-
VUE_APP_ZMS_API_CAPTCHA_DETAILS_ENDPOINT=/buergeransicht/api/backend/captcha-details/
2+
VUE_APP_ZMS_API_PROVIDERS_AND_SERVICES_ENDPOINT=/buergeransicht1/api/backend/offices-and-services/
3+
VUE_APP_ZMS_API_CALENDAR_ENDPOINT=/buergeransicht1/api/backend/available-days/
4+
VUE_APP_ZMS_API_AVAILABLE_TIME_SLOTS_ENDPOINT=/buergeransicht1/api/backend/available-appointments/
5+
VUE_APP_ZMS_API_RESERVE_APPOINTMENT_ENDPOINT=/buergeransicht1/api/backend/reserve-appointment/
6+
VUE_APP_ZMS_API_APPOINTMENT_ENDPOINT=/buergeransicht1/api/backend/appointment/
7+
VUE_APP_ZMS_API_UPDATE_APPOINTMENT_ENDPOINT=/buergeransicht1/api/backend/update-appointment/
8+
VUE_APP_ZMS_API_CONFIRM_RESERVATION_ENDPOINT=/buergeransicht1/api/backend/confirm-appointment/
9+
VUE_APP_ZMS_API_CANCEL_APPOINTMENT_ENDPOINT=/buergeransicht1/api/backend/cancel-appointment/
10+
VUE_APP_ZMS_API_PRECONFIRM_RESERVATION_ENDPOINT=/buergeransicht1/api/backend/preconfirm-appointment/
11+
VUE_APP_ZMS_API_CAPTCHA_DETAILS_ENDPOINT=/buergeransicht1/api/backend/captcha-details/

frontend/src/App.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ export default {
6363
computed: {
6464
linkBaseUrl () {
6565
if (process.env.NODE_ENV === 'development' || typeof this.baseUrl === 'undefined') {
66-
return '/buergeransicht/'
66+
return '/buergeransicht1/'
6767
}
6868
6969
return this.baseUrl + '/'
@@ -80,9 +80,9 @@ export default {
8080
},
8181
methods: {
8282
loadData() {
83-
let baseUrl = this.baseUrl ?? '/buergeransicht'
83+
let baseUrl = this.baseUrl ?? '/buergeransicht1'
8484
if (process.env.NODE_ENV === 'development') {
85-
baseUrl = 'http://localhost:8080/buergeransicht'
85+
baseUrl = 'http://localhost:8080/buergeransicht1'
8686
}
8787
8888
this.$store.state.settings.endpoints["VUE_APP_ZMS_API_BASE"] = baseUrl

frontend/vue.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import WebpackAssetsManifest from 'webpack-assets-manifest'
33

44
export default defineConfig({
55
transpileDependencies: true,
6-
publicPath: '/buergeransicht/',
6+
publicPath: '/buergeransicht1/',
77
configureWebpack: config => {
88
config.plugins = config.plugins.concat(
99
new WebpackAssetsManifest({
@@ -13,6 +13,6 @@ export default defineConfig({
1313
},
1414
devServer: {
1515
port: "8082",
16-
proxy: 'http://localhost:8082/buergeransicht/'
16+
proxy: 'http://localhost:8082/buergeransicht1/'
1717
}
1818
})

0 commit comments

Comments
 (0)