Add minimal proof of concept
This commit is contained in:
9
src/app/http/controllers/main/Home.controller.ts
Normal file
9
src/app/http/controllers/main/Home.controller.ts
Normal 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>()
|
||||
}
|
||||
}
|
||||
0
src/app/resources/.gitkeep
Normal file
0
src/app/resources/.gitkeep
Normal file
14
src/app/types/LoginAttempt.ts
Normal file
14
src/app/types/LoginAttempt.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
|
||||
export interface LoginAttempt {
|
||||
/**
|
||||
* @minLength 1
|
||||
*/
|
||||
username: string,
|
||||
|
||||
/**
|
||||
* @minLength 1
|
||||
*/
|
||||
password: string,
|
||||
|
||||
rememberMe?: boolean
|
||||
}
|
||||
Reference in New Issue
Block a user