Kasky

Kasky

  • Documentation
  • GitHub

›Next Step

Getting Started

  • Installation
  • Creating your First Project
  • Running your Project

Next Step

  • Controllers
  • Routing
  • Middlewares

References

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

Controllers

Create a controller

The follow command will create a new controller class file.

$ kasky make:controller --name=ControllerClassName

An example controller class.

import { Controller } from 'kasky';

@Controller()
class MyFirstController {}

export default MyFirstController;
← Running your ProjectRouting →
  • Create a controller
Kasky
Docs
Getting StartedGuidesAPI Reference
More
GitHubStar
Copyright © 2019 Kasky