1.0.0-alpha.27 • Published 8 years ago

candlelight v1.0.0-alpha.27

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

Candlelight

A NodeJs Web Framework

Installation

npm install candlelight --save

Usage with Restful

import Application from 'candlelight/Application';
import RestController from 'candlelight/annotation/RestController';
import RequestMapping from 'candlelight/annotation/RequestMapping';
import HttpMethod from 'candlelight/http/HttpMethod';

@RestController
class ApplicationController{
    @RequestMapping({value: '/index', method: HttpMethod.GET})
    index(ctx){
        return {
            success: true,
            message: 'Hello World!'
        };
    }
}

const app = new Application();
app.run({
    controllers: {
        ApplicationController
    }
});

Middleware

const app = new Application();
app.

Request Params

path variable

class Controller{
    
    @RequestMapping({path: '/:id'})
    index({pathVariable}){
        const {id} = pathVariable;
    }
}
1.0.0-alpha.27

8 years ago

1.0.0-alpha.26

8 years ago

1.0.0-alpha.25

8 years ago

1.0.0-alpha.24

8 years ago

1.0.0-alpha.23

8 years ago

1.0.0-alpha.22

8 years ago

1.0.0-alpha.21

8 years ago

1.0.0-alpha.20

8 years ago

1.0.0-alpha.19

8 years ago

1.0.0-alpha.18

8 years ago

1.0.0-alpha.17

8 years ago

1.0.0-alpha.16

8 years ago

1.0.0-alpha.15

8 years ago

1.0.0-alpha.14

8 years ago

1.0.0-alpha.13

8 years ago

1.0.0-alpha.12

8 years ago

1.0.0-alpha.11

8 years ago

1.0.0-alpha.10

8 years ago

1.0.0-alpha.9

8 years ago

1.0.0-alpha.8

8 years ago

1.0.0-alpha.7

8 years ago

1.0.0-alpha.6

8 years ago

1.0.0-alpha.5

8 years ago

1.0.0-alpha.4

8 years ago

1.0.0-alpha.3

8 years ago

1.0.0-alpha.1

8 years ago

1.0.0-alpha.0

8 years ago

0.0.8-alpha

9 years ago

0.0.7-alpha

9 years ago

0.0.6-alpha

9 years ago

0.0.5-alpha

9 years ago

0.0.4-alpha

9 years ago

0.0.3-alpha

9 years ago

0.0.2-alpha

9 years ago

0.0.1-alpha

9 years ago