|
|
|
@ -78,8 +78,8 @@ function route(path, route) {
|
|
|
|
|
app.use(path, require('./routes/' + route));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
route("/ssh", "ssh");
|
|
|
|
|
route("/ping", "ping");
|
|
|
|
|
route(["/s", "/ssh"], "ssh");
|
|
|
|
|
route(["/p", "/ping"], "ping");
|
|
|
|
|
|
|
|
|
|
// catch 404 and forward to error handler
|
|
|
|
|
app.use(function (req, res, next) {
|
|
|
|
|