SFrontendServer handlers

Handlers are controllers for specific routes. This mean that when you call for example the route /something/cool, you must have an handler registered to take care of this request.

Registering your own handler

To register your own handler, the easiest way is to register it through a module.

To check how to register a module, check the modules documentation page.

export default function myModule({express, settings, config, startParams}) {
  // register your handler
  config.handlers.myHandler = {
    path: `/absolute/path/to/my/handler`,
  };

  // register some routes that will use this handler
  config.routes['/myHandler/*'] = {
    handler: 'myHandler',
  };
}

Handler scaffold

Here's some base code that you can use for your handler:

Bugs
are not our friends...

Don't hesitate to declare an issue if something does not works as expected.

Declare my issue on Github Talk about it on Discord

The more we are,
the stronger we become.

Don't hesitate to tell some words to you friends about us. The goal is to became more and more each days to help each others...

Support us on Patreon! Share on Facebook! Make a tweet!

The more we are,
the stronger we become.

Don't be afraid to join us on Discord.

Join us on discord!

We love,
Open source!

All of our codebase can be found on Github. We hope that you may contribute to help us make our tools even better!

Discover our codebase!

Welcome on