@ccci/micro-server 1.0.86 → 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(), "routes");
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) {
@@ -1,4 +1,5 @@
1
1
  export type ApplicationOptionType = {
2
+ routeContext?: string;
2
3
  configDir?: string;
3
4
  modelDir?: string;
4
5
  controllerDir?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ccci/micro-server",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",