Requires

Methods

(async, static) /api(req, res)

This endpoint displays the card on the browser

Parameters:
NameTypeDescription
reqObject

Request object

Properties
NameTypeDescription
queryObject

Query object

Properties
NameTypeDescription
userstring

Github username

themestring

Theme name

nnumber

Number of gists to display

titlestring

Title of the card

resObject

Response object

(async, static) /api/pin(req, res)

This endpoint displays the card on the browser

Parameters:
NameTypeDescription
reqObject

Request object

Properties
NameTypeDescription
queryObject

Query object

Properties
NameTypeDescription
userstring

Github username

idstring

Gist id

themestring

Theme name

ownerboolean

Show gist owner

resObject

Response object