Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can change express router to class functions #1

Open
sinapcs opened this issue Dec 11, 2016 · 0 comments
Open

how can change express router to class functions #1

sinapcs opened this issue Dec 11, 2016 · 0 comments
Assignees

Comments

@sinapcs
Copy link

sinapcs commented Dec 11, 2016

how can use class function instead of this following code

var express = require('express');
var app = express();
app.get('/test1', function(req, res){
res.end('done');
});

instead of this code I wanna use something like this

class testController{
@route('test1')
test1() => {}
}
@darius-khll darius-khll self-assigned this Dec 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants