6ix
v0.0.0-canary.0
Published
A Next.js or Node lambda Framework
Downloads
4
Readme
6ix
A Next.js or Node lambda Framework
import { Get, Lambda, Post, Body } from '6ix';
const db = [];
class Users {
@Get()
list() {
return db;
}
@Post()
create(@Body() body: any) {
const user = { id: db.length, name: body.name };
db.push(user);
return user;
}
}
export default Lambda(Users);