Package 

Class StaticFiles


  • @Controller() 
    public class StaticFiles
    
                        

    This is a controller that is concerned with static files. It technically doesn't need to exist - you can have dynamic and static routes in the same controller. However, I chose to separate it to make things easier to read

    • Constructor Summary

      Constructors 
      Constructor Description
      StaticFiles()
    • Method Summary

      Modifier and Type Method Description
      String spa(@PathVariable() String path) This starter assumes the consuming application is using Spring to run a SPA as the client, so it redirects everything to "/", or index.html
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StaticFiles

        StaticFiles()
    • Method Detail

      • spa

        @RequestMapping(value = {/{path:^(?!websocket-server)[^\\.]*}}) String spa(@PathVariable() String path)

        This starter assumes the consuming application is using Spring to run a SPA as the client, so it redirects everything to "/", or index.html