🤪 Various improvements

This commit is contained in:
2018-06-13 19:19:30 +02:00
parent 2bc6abf42c
commit 701282099a
9 changed files with 98 additions and 44 deletions

View File

@ -0,0 +1,18 @@
package ch.dissem.bitmessage.server
import org.springframework.stereotype.Controller
import org.springframework.web.bind.annotation.RequestMapping
import javax.servlet.http.HttpServletRequest
@Controller
@RequestMapping
class FrontendController {
@RequestMapping("/{path:[^\\.]+}/**")
fun redirect(request: HttpServletRequest): String {
// Also forward to home page so that route is preserved.
return "forward:/index.html"
}
}