diff --git a/src/routes.js b/src/routes.js index a8409b4e..93166f6b 100644 --- a/src/routes.js +++ b/src/routes.js @@ -48,6 +48,12 @@ module.exports = async ( mySocketsEvents, { serverPort, CA, CA_KEY, useTLS } ) => { + /** + * @typedef {import('express').Application} Application + */ + + const ap = /** @type {Application} */ (app) + try { const Http = Axios.create({ httpsAgent: new httpsAgent.Agent( @@ -2064,12 +2070,6 @@ module.exports = async ( * @typedef {import('express-serve-static-core').RequestHandler
} RequestHandler */ - /** - * @typedef {import('express').Application} Application - */ - - const ap = /** @type {Application} */ (app) - /** * @typedef {object} FollowsRouteParams * @prop {(string|undefined)=} publicKey