hapi
hapi copied to clipboard
How to add routes to servers within composer
Using Composer and a json manifest to config and start my servers, how do I add routes to individual servers? I can't find an example or explanation anywhere in the docs.
Thanks!
You can't. You need to create a plugin then add the routes in the plugin. The manifest allows you to specify plugins/servers combination or use labels.