Skip to content

This module defines how requests are handled by the server.

Functions
  • check_auth(login_data) (bool) Checks the user login.</>
  • handle(req, auth_token) (dict) Handle a request to the function.</>
function

handler.handler.check_auth(login_data)

Checks the user login.

Parameters
  • login_data (UserLoginSchema) User login data.
Returns (bool)

True if the login is correct and False if it is not.

function

handler.handler.handle(req, auth_token=None)

Handle a request to the function.

Parameters
  • req (dict) The request parameters.
  • auth_token (dict) The token information used to authenticate.
Returns (dict)

A dictionary containing the results for the request.