🤪 Various improvements
This commit is contained in:
@ -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"
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user