[+] Redirect option

This commit is contained in:
Azalea
2024-03-03 00:29:48 -05:00
parent 2ba5073d55
commit 32eb98361a
2 changed files with 4 additions and 1 deletions

View File

@@ -25,6 +25,7 @@ class AllNetProps {
var port: Int? = null
val keychipSesExpire: Long = 172800000 // milliseconds
var checkKeychip: Boolean = false
var redirect: String = "web"
var placeName: String = ""
var placeId: String = "123"
@@ -67,7 +68,7 @@ class AllNet(
) {
@API("/")
fun root(response: HttpServletResponse) {
response.sendRedirect("web")
response.sendRedirect(props.redirect)
}
@API("/sys/test")