Skip to content

Releases: calidion/aex

enabled rest api and vig api decorator to simplify the way for api development

25 Oct 08:01
Compare
Choose a tag to compare

@rest is for rest api for resource state representation.
@api is for vig api for business logic manipulation.

Enable Compact Mode

30 Sep 12:43
Compare
Choose a tag to compare

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

10 Dec 04:00
Compare
Choose a tag to compare

enabled this.req, this.res, this.scope

enabled @error decorator

27 Jan 04:02
Compare
Choose a tag to compare

enabled @error decorator
added scope.error, scope.query, scope.params, scope.body, scope.session

Enabled websocket

26 Dec 15:44
Compare
Choose a tag to compare

Websocket support enabled

  1. Enabled websocket middlewares
  2. Enabled simplified event sending