1.0.0-alpha.27 • Published 6 years ago

candlelight v1.0.0-alpha.27

Weekly downloads
3
License
ISC
Repository
github
Last release
6 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

6 years ago

1.0.0-alpha.26

6 years ago

1.0.0-alpha.25

6 years ago

1.0.0-alpha.24

6 years ago

1.0.0-alpha.23

6 years ago

1.0.0-alpha.22

6 years ago

1.0.0-alpha.21

6 years ago

1.0.0-alpha.20

6 years ago

1.0.0-alpha.19

6 years ago

1.0.0-alpha.18

6 years ago

1.0.0-alpha.17

6 years ago

1.0.0-alpha.16

6 years ago

1.0.0-alpha.15

6 years ago

1.0.0-alpha.14

6 years ago

1.0.0-alpha.13

6 years ago

1.0.0-alpha.12

6 years ago

1.0.0-alpha.11

6 years ago

1.0.0-alpha.10

6 years ago

1.0.0-alpha.9

6 years ago

1.0.0-alpha.8

6 years ago

1.0.0-alpha.7

6 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.1

7 years ago

1.0.0-alpha.0

7 years ago

0.0.8-alpha

8 years ago

0.0.7-alpha

8 years ago

0.0.6-alpha

8 years ago

0.0.5-alpha

8 years ago

0.0.4-alpha

8 years ago

0.0.3-alpha

8 years ago

0.0.2-alpha

8 years ago

0.0.1-alpha

8 years ago