Home Reference Source Repository
import IndexController from 'beerio-api/src/controllers/IndexController.js'
public class | source

IndexController

Class for displaying information about the server the API is running on.

Method Summary

Public Methods
public

getIndex(req: Request, res: Response): JSON

Get general information about the server.

Public Methods

public getIndex(req: Request, res: Response): JSON source

Get general information about the server.

Params:

NameTypeAttributeDescription
req Request

The express request object.

res Response

The express response object.

Return:

JSON

General information about the server.