Created
March 15, 2016 19:07
-
-
Save zacharygolba/1899f0188b96ba8d6f02 to your computer and use it in GitHub Desktop.
Lux Controller - Example 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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