Kasky

Kasky

  • Documentation
  • GitHub

›References

Getting Started

  • Installation
  • Creating your First Project
  • Running your Project

Next Step

  • Controllers
  • Routing
  • Middlewares

References

  • Request
  • Response
  • @Controller()
  • @Route.<HTTP_METHOD>()

@Controller()

The @Controller() decorator can be used on a class to create a Controller class.

@Controller(options?: object)

The decorator takes an optional object as an argument. The properties of this object can be seen below.

Options Properties

baseRoute: string

This is used to specify a parent route.

@Controller({
  baseRoute: '/api/v1'
})
← Response@Route.<HTTP_METHOD>() →
  • Options Properties
    • baseRoute: string
Kasky
Docs
Getting StartedGuidesAPI Reference
More
GitHubStar
Copyright © 2019 Kasky