Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Lux Controller - Example 2
import { Controller, action } from 'lux-framework';
class UsersController extends Controller {
params = [
async login(req, res) {
const User ='user');
const user = await User.authenticate(req.params);
if (user) {
return user;
export default UsersController;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment