boxlang-express-mvc 0.2.0
Released .
this.allowedMethodson a handler limits an action to the listed HTTP methods on every route, the convention route included. A wrong method gets a 405 with anAllowheader.- Changed: an action is now a public function whose first argument
is named
event. Other public functions are no longer routable. - Changed:
relocate()throwsBoxExpressMvc.InvalidRelocationfor//hostand/\host, which a browser reads as another site. - Fixed:
buildLink()used a param name as a regular expression. examples/todoadds security headers, a rate limit and a cap on the list; its Dockerfile pins the base image by digest.examples/starterdefaults toproduction.- CI: read-only token, no stored checkout credentials, actions and the CommandBox image pinned; Dependabot keeps the pins current.
examples/todo: a todo list with sessions, CSRF protection and a Dockerfile.examples/starteris the formerexamples/app.- A GitHub Actions workflow runs the specs on every push.
examples/todoinstallsbx-esapiand usesencodeForHTMLAttribute()in attributes. The docs say to install it in every app.