Skip to content

1.1.2

Compare
Choose a tag to compare
@sanchezzzhak sanchezzzhak released this 26 Jun 16:07
· 8 commits to master since this release

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