Class IndexRouteConfiguration

java.lang.Object
se.swedenconnect.bankid.idp.authn.IndexRouteConfiguration

@Configuration public class IndexRouteConfiguration extends Object
Controller for templating index.html for setting base path.
Author:
Felix Hellman
  • Constructor Details

    • IndexRouteConfiguration

      public IndexRouteConfiguration()
  • Method Details

    • baseIndexTemplate

      public String baseIndexTemplate(String contextPath, String routerPath) throws IOException
      Parameters:
      contextPath - to template into index.html
      Returns:
      modified index.html with basepath set to context-path if context-path is set.
      Throws:
      IOException - if index.html is not found