import info.mechyrdia.route.Root
import info.mechyrdia.route.checkCsrfToken
import info.mechyrdia.route.href
+import info.mechyrdia.route.installCsrfToken
import io.ktor.server.application.*
import io.ktor.server.websocket.*
import io.ktor.websocket.*
RobotServiceStatus.READY -> ul {
li {
form(action = href(Root.Admin.NukeManagement.Update()), method = FormMethod.post) {
+ installCsrfToken()
submitInput {
value = "Manually Trigger File Update"
}
}
li {
form(action = href(Root.Admin.NukeManagement.Reset()), method = FormMethod.post) {
+ installCsrfToken()
submitInput(classes = "evil") {
value = "Reset All Data And Start Over"
}