You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be very useful to be able to add web pages or webhooks to modules. Use cases include authentication and integration with 3rd party services. With the proposed changes in routing (see #2489) this is mostly trivial as the module can simply include any Route. Depending on the use case, the Route can be added directly to the WebServer or to a subroute using a router.
The only issue is how we handle HTML templates and static files, as they may need to be copied into the main project. This could be done by the serverpod generate command. The web directory of the server package could have a sub-directory called modules. When running the generate command, Serverpod would copy the files from each module's web directory (e.g., my_module_server/web) into the main projects modules directory (e.g., web/modules/my_module).
A server Widget located in a module would refer to its template as normal but with an added module property set.
Activity
SandPod commentedon Oct 6, 2025
Disconnecting from the web server RFC since this will be implemented at a later stage.