1.0.3 • Published 6 years ago

@t2ee/vader v1.0.3

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 years ago

IMPORTANT !!

@t2ee/vader has now moved towards 1.x versions, with brand new mechanisms (though, 99% like apis as 0.x versions). For legacy 0.x versions, please see 0.x branch.

Introducation

@t2ee/vader is a routing component (with JAX-RS like grammars). It is to be used with koa@2.

For detailed introduction and examples, please visit vader.t2ee.org

Installation

npm i reflect-metadata @t2ee/core @t2ee/sl4js koa@2 @t2ee/vader -S

Example

import 'reflect-metadata';
import * as Koa from 'koa';
import {
    Path,
    Router,
    QueryParam,
    Response,
    GET,
} from '@t2ee/vader';

const router = Router.newInstance();

@Path('')
class Controller {

    @GET
    @Path('/say')
    say(@QueryParam('message') message: string) {
        const response = new Response();
        response.body = message;
        return response;
    }
}

router.use(Controller);
const app = new Koa();
app.use(router.routes());
app.listen(8080);
2.0.0-alpha2

6 years ago

2.0.0-alpha

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago

1.0.0-alpha-9

7 years ago

1.0.0-alpha-8

7 years ago

1.0.0-alpha-7

7 years ago

1.0.0-alpha-6

7 years ago

1.0.0-alpha-5

7 years ago

1.0.0-alpha-4

7 years ago

1.0.0-alpha-3

7 years ago

1.0.0-alpha-2

7 years ago

1.0.0-alpha-1

7 years ago

0.1.8

7 years ago

0.1.7

7 years ago

0.1.6

7 years ago

0.1.5

7 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

8 years ago

0.1.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago