Skip to content

Commit

Permalink
fix: remove localhost string (#25)
Browse files Browse the repository at this point in the history
closes #20
  • Loading branch information
bbtgnn authored Dec 6, 2023
1 parent a48afe7 commit 7fc4b1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const generateRoutes = (app: TemplatedApp) => {
schema: JSON.stringify(schema),
title: path || 'Welcome 🥳 to ',
description: contract,
endpoint: `http://localhost:${config.port}${path}`
endpoint: `http://${config.hostname}:${config.port}${path}`
});

res.writeStatus('200 OK').writeHeader('Content-Type', 'text/html').end(result);
Expand Down

0 comments on commit 7fc4b1f

Please sign in to comment.