Skip to content

Commit

Permalink
Add route for root '/' path
Browse files Browse the repository at this point in the history
  • Loading branch information
ayoshebby authored and dbes-gds committed Nov 15, 2023
1 parent 3964718 commit 36d51b2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions micro-stub/micro-stub-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ const querystring = require("querystring");
const { randomBytes } = require("crypto");
const app = express();
const port = process.env.PORT;
const path = require("path");

app.get("/", (req, res) => {
res.sendFile(path.join(__dirname, 'index.html'))
})

app.get("/authorize", (req, res) => {
const authRequest = getAuthorizeRequest(req.query);
Expand Down

0 comments on commit 36d51b2

Please sign in to comment.