1.1.2
feat: added cookie read and write for controller
example:
class Home extends AbstractController {
async write() {
this.initRequest();
this.cookieData.set('my-cookie-value', 'Jon')
return this.asJson({
name: this.cookieData.get('my-cookie-value')
})
}
async read() {
this.initRequest();
return this.asJson({
name: this.cookieData.get('my-cookie-value', 'not set cookie name')
})
}
}
fix: method asJson
feat: update types-script annotations