mirror of
https://github.com/HeyPuter/puter.git
synced 2026-05-04 00:20:45 +00:00
341 B
341 B
Definitions
core.config - Configuration
Puter's configuration object. This includes values from config.json or their
defaults, and computed values like origin and api_origin.
const config = use('core.config');
extension.get('/get-origin', { noauth: true }, (req, res) => {
res.send(config.origin);
})