Releases: calidion/aex
Releases · calidion/aex
enabled rest api and vig api decorator to simplify the way for api development
Enable Compact Mode
With compact mode, aex can use one
variable to hold traditional req, res, scope
array.
for example:
traditional:
we can use this to have tree variables.
class A {
@http("*", "*")
async function (req, res, scope) {
}
}
if you don't want be bothered with tree variables, use can use compact mode to have only one variable
class A {
@http("*", "*", true)
async function (context) {
const {req, res, scope} = context
}
@compact("*", "*")
async function (context) {
const {req, res, scope} = context
}
}
enabled this.req, this.res, this.scope
enabled this.req, this.res, this.scope
enabled @error decorator
enabled @error decorator
added scope.error, scope.query, scope.params, scope.body, scope.session
Enabled websocket
Websocket support enabled
- Enabled websocket middlewares
- Enabled simplified event sending