Add minimal proof of concept

This commit is contained in:
2022-01-14 14:39:29 -06:00
commit 77fa6ad867
9 changed files with 2769 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
import {Controller, Injectable, Validator} from '@extollo/lib'
import {LoginAttempt} from '../../../types/LoginAttempt'
@Injectable()
export class Home extends Controller {
public getValidator() {
return new Validator<LoginAttempt>()
}
}

View File

View File

@@ -0,0 +1,14 @@
export interface LoginAttempt {
/**
* @minLength 1
*/
username: string,
/**
* @minLength 1
*/
password: string,
rememberMe?: boolean
}