autoconfigure-web
This library provides support for following feature:
- Configures necessary headers when ssl terminates at f5.
- Configures spa fallback controller.
- Configures mime type for
.mjstojavascript(Required when using nuxt as frontend) - CORS configuration.
This module encapsulates springboot web dependencies, autoconfigure-encryption, util, autoconfigure-logging dependencies and fetch features which is used by useAisFetch (Nuxt composable to fetch common config and call api)
Web Fetch
This module will create bean of AisFetchController only when there is no autoconfigure-jwt/autoconfigure-oauth dependency is present on consumer app's classpath.
Sample config object returned from AisFetchController
json
{
"server": {
"baseUrl": "/api",
"url": "http://localhost:9090/maui-prototype/api",
"host": "http://localhost:9090/maui-prototype"
},
"framework": "SPRINGBOOT",
"isTest": false,
"isProd": false,
"isDev": true,
"client": {
"redirectUrl": "/",
"host": "http://localhost:3000/maui-prototype"
},
"env": [
"dev"
]
}