18 lines
459 B
Kotlin
18 lines
459 B
Kotlin
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"
|
|
}
|
|
|
|
} |