Skip to content

Commit

Permalink
Add default get response.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRomp authored Dec 13, 2024
1 parent 53d5f80 commit 41596bd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { Readable } from "node:stream";

const app = express()

app.get("/", (req, res) => {
res.send("Ahoy, matey! Welcome to the Blackbeard Pirate GitHub Copilot Extension!")
});

app.post("/", express.json(), async (req, res) => {
// Identify the user, using the GitHub API token provided in the request headers.
const tokenForUser = req.get("X-GitHub-Token");
Expand Down

0 comments on commit 41596bd

Please sign in to comment.