feat: backup plugin

Signed-off-by: MiaoWoo <admin@yumc.pw>
This commit is contained in:
2020-11-13 09:41:15 +08:00
parent f86e1a8c94
commit aca864500f
7 changed files with 328 additions and 46 deletions

View File

@@ -94,7 +94,7 @@ export class MiaoSpring extends interfaces.Plugin {
preHandle: (ctx: Context) => {
const index = foundMap.indexOf(ctx.request.getRequestURI())
if (index != -1) {
return this.ResponseEntity.status(this.HttpStatus.FOUND).header('Location', foundMap[index + 1]).build()
return this.ResponseEntity.status(org.springframework.http.HttpStatus.FOUND).header('Location', foundMap[index + 1]).build()
}
}
})