new StopService(server, route)
- Description:
Implements a programmatically stop of the server
-
A POST service is attached to the given route.
-
When a post is sent on the given route, the whole server program stops.
-
Parameters:
Name | Type | Default | Description |
---|---|---|---|
server |
express | The express server mechanism. |
|
route |
string |
/stop
|
The service route. |