Module: routes/siteSettings

API-ruter for håndtering av globale nettstedsinnstillinger.

Source:

Methods

(static) GET /api/site/settings(req, res) → {void}

Henter nettstedets globale innstillinger.

Parameters:
Name Type Description
req express.Request

HTTP-forespørselen

res express.Response

HTTP-responsen med innstillingene

Source:
Returns:
Type
void

(static) PUT /api/site/settings(req, res) → {void}

Oppdaterer nettstedets globale innstillinger. Eksempelpayload for request body: { "site_title": "Min Fantastiske Klubb", "default_language": "en" }

Parameters:
Name Type Description
req express.Request

HTTP-forespørselen med oppdaterte verdier i req.body

res express.Response

HTTP-responsen med de nye innstillingene

Source:
Returns:
Type
void