Skip to content

Latest commit

 

History

History
39 lines (25 loc) · 774 Bytes

README.md

File metadata and controls

39 lines (25 loc) · 774 Bytes

tornado_router plus

This project is an enhancement of tornado_router

Decorator based router for Tornado Web Framework that help reduce development time.

Features

  • RESTful support

The original author's project does not provide RESTful style support.

@router.route("index")
@router.route("index", "post")
  • JWT Token auth
@router.route(auth=True)
  • JSON request
@router.route(json=True)
  • Auto import

You just need to create a handler folder in the root of your project to automatically scan for all decorators

app = tornado.web.Application(handlers=GloabelRouter.handlers)
  • Usage

For more information on how to use it, please refer to the example folder