Browse Source

Add development end points

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.4-alpha
Pekka Helenius 4 years ago
parent
commit
8aac39be5d
3 changed files with 16 additions and 1 deletions
  1. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/config/WebSecurityConfig.java
  2. +8
    -0
      bookstore/src/main/java/com/fjordtek/bookstore/service/session/BookStorePages.java
  3. +7
    -0
      bookstore/src/main/resources/website.properties

+ 1
- 1
bookstore/src/main/java/com/fjordtek/bookstore/config/WebSecurityConfig.java View File

@ -130,7 +130,7 @@ public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
.authorizeRequests()
.antMatchers(
env.getProperty("spring.h2.console.path") + "/**",
env.getProperty("page.url.statsref") + "/**",
env.getProperty("page.url.dev") + "/**",
env.getProperty("page.url.index"),
env.getProperty("page.url.list"),
env.getProperty("page.url.error"),


+ 8
- 0
bookstore/src/main/java/com/fjordtek/bookstore/service/session/BookStorePages.java View File

@ -41,6 +41,9 @@ public class BookStorePages {
JSON,
JSONBOOK,
JSONLIST,
ACTUATOR,
DEV,
DEVSTATSREF,
H2CONSOLE,
REST,
RESTAUTHORS,
@ -71,6 +74,11 @@ public class BookStorePages {
this.JSONBOOK = env.getProperty("page.url.json.book");
this.JSONLIST = env.getProperty("page.url.json.list");
this.ACTUATOR = env.getProperty("page.url.actuator");
this.DEV = env.getProperty("page.url.dev");
this.DEVSTATSREF = env.getProperty("page.url.dev.statsref");
this.H2CONSOLE = env.getProperty("spring.h2.console.path");
this.REST = env.getProperty("spring.data.rest.base-path");


+ 7
- 0
bookstore/src/main/resources/website.properties View File

@ -24,8 +24,15 @@ page.url.apiref = /apiref
page.url.autherror = /autherror
page.url.error = /error
page.url.actuator = /actuator
# BookDevController
# Development only end points
#
page.url.dev = /dev
page.url.dev.statsref = /statsref
# BookRestController
# Public JSON end points
#


Loading…
Cancel
Save