Skip to content

Instantly share code, notes, and snippets.

@zacharygolba
Created March 15, 2016 19:07
Show Gist options
  • Save zacharygolba/1899f0188b96ba8d6f02 to your computer and use it in GitHub Desktop.
Save zacharygolba/1899f0188b96ba8d6f02 to your computer and use it in GitHub Desktop.
Lux Controller - Example 1
import { Controller } from 'lux-framework';
import setUser from '../middleware/set-user';
class PostsController extends Controller {
params = [
'body',
'isPublic',
'userId'
];
beforeAction = [
setUser
];
}
export default PostsController;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment