SFrontendServer middlewares

Middlewares are functions that will be executed between the incoming request and the response sending to client. For more information about middlewares, I let you check the express.js middleware documentation.

Registering your own middleware

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}) {
  config.middlewares.myMiddleware = {
    path: `/absolute/path/to/my/middleware`,
    settings: {},
  };
}

Middleware 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