diff --git a/pkg/index.js b/pkg/index.js index e69a120..da1a78a 100644 --- a/pkg/index.js +++ b/pkg/index.js @@ -145,7 +145,7 @@ export class API { } } - if (pathname == '/api') { + if (pathname == '/api' || pathname == '/') { const payload = JSON.stringify({ api: this.metadata, endpoints: this.routes,