Skip to content

Instantly share code, notes, and snippets.

View zacharygolba's full-sized avatar

Zachary Golba zacharygolba

View GitHub Profile
@zacharygolba
zacharygolba / posts.js
Created March 15, 2016 19:07
Lux Controller - Example 1
import { Controller } from 'lux-framework';
import setUser from '../middleware/set-user';
class PostsController extends Controller {
params = [
'body',
'isPublic',
'userId'
];
@zacharygolba
zacharygolba / users.js
Created March 15, 2016 19:09
Lux Controller - Example 2
import { Controller, action } from 'lux-framework';
class UsersController extends Controller {
params = [
'name',
'email',
'password'
];
@action