Weblutions Documentation
Weblutions Main Site Contact Us Our Discord
Some pages are still pending proper formatting, if required refer to the legacy documentation website.
FaxStore IconFaxStore

Weblutions Documentation / FaxStore / Registering Apps

Updated

Registering Apps

By Josh M. 1 min 9

When an app is created it's recommended to have the app registered to ensure it's visible on FaxStore's staff panel and internally within the FaxStore application.

Registering an app is universal over all created apps and uses the global faxstore.apps variable to do this. By using the faxstore.apps.register() function this can be done.

Required Parameters

Only a few parameters in the faxstore.apps.register() function are required by FaxStore. These being:

  • name - string

  • __filename - this should be set as __filename where the second parameter is on the faxstore.apps.register() function as per the below.

All other options are optional in the function. However, as many as possible are recommended.

Register App Example

faxstore.apps.register({
    name: 'My Extension',
    description: 'Here is a description of this extension',
    icon: 'https://weblutions.com/assets/logo.png',
    config: extConfig,
    version: '1.0.0',
    author: 'Weblutions',
    url: 'https://github.com/FAXES/faxstore-extensions',
    staffPage: {
        icon: 'fa-solid fa-grid',
        name: 'Extension Name',
        link: '/staff/myextension/settings'
    }
    pages: ['/staff/myextension', '/staff/myextension/settings']
}, __filename);