@ccci/micro-server 1.0.85 → 1.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -119177,7 +119177,7 @@ class ApplicationServer {
|
|
|
119177
119177
|
ApplicationServer.app.get("/", (req, resp) => {
|
|
119178
119178
|
return resp.sendFile(path4.resolve("index.html"));
|
|
119179
119179
|
});
|
|
119180
|
-
await RouterFactory.init(ApplicationServer.app, process.cwd(),
|
|
119180
|
+
await RouterFactory.init(ApplicationServer.app, process.cwd(), options?.routeDir, options?.routeContext);
|
|
119181
119181
|
const server = ApplicationServer.app.listen(port, async () => {
|
|
119182
119182
|
Logger.info(`API Sever ready at: http://127.0.0.1:${port}\n`);
|
|
119183
119183
|
if (options?.enableWebSocket) {
|
|
@@ -30,6 +30,6 @@ export default class BaseSocketHandler {
|
|
|
30
30
|
* @param reason {reason}
|
|
31
31
|
*/
|
|
32
32
|
disconnect(ws: ServerWebSocket, code: number, reason: string): Promise<void>;
|
|
33
|
-
static parse(url: String):
|
|
33
|
+
static parse(url: String): any;
|
|
34
34
|
}
|
|
35
35
|
//# sourceMappingURL=BaseSocketHandler.d.ts.map
|