Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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