mirror of
https://github.com/sergeyyarkov/educt-server.git
synced 2026-10-11 02:09:07 +03:00
14 lines
339 B
TypeScript
14 lines
339 B
TypeScript
import { schema } from '@ioc:Adonis/Core/Validator';
|
|
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext';
|
|
|
|
export default class AuthValidator {
|
|
constructor(protected ctx: HttpContextContract) {}
|
|
|
|
public schema = schema.create({
|
|
login: schema.string(),
|
|
password: schema.string(),
|
|
});
|
|
|
|
public messages = {};
|
|
}
|