@express.ts/router
test package
Last updated 2 months ago by aboulmane .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @express.ts/router 
SYNC missed versions from official npm registry.

@express.ts/router

A simple router to make it easy to use with Typescript for building efficient and scalable server-side applications, heavily inspired by Spring MVC.

import { RequestMapping, GetMapping, RequestMethod } from "@express.ts/router";
import { Controller, Request, Response, RequestParam } from "@express.ts/stereotype";
@Controller("/api")
export default class ApiController {
  /**
   * GET /api
   * List of API examples.
   */
  @GetMapping("")
  index (@Request() req: any,
         @Response() res: any) {
    res.render("api/index", {
      title: "API Examples"
    });
  }
}

Current Tags

  • 1.1.3                                ...           latest (2 months ago)

4 Versions

  • 1.1.3                                ...           2 months ago
  • 1.1.2                                ...           10 months ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 4
Last Day 0
Last Week 4
Last Month 1
Dependencies (7)
Dev Dependencies (4)
Dependents (1)

Copyright 2014 - 2017 © taobao.org |