Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[completed lab] #14

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
logs
*.log
npm-debug.log*
node_modules
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
Expand Down
57 changes: 57 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
const express = require("express");
// console.log(express);
const app = express();

//first route
app.get("/terminator", (req, res) => {
res.send("I'll be back");
});

//second route
app.get("/fraiser", (req, res) => {
res.send("I'm listening");
});

//third route
app.get("/regis", (req, res) => {
res.send("Is that your final awnswer?");
});

//fourth route
app.get("/bruce", (req, res) => {
res.send(`Don't make me angry`);
});

//fifth route
app.get("/harrycallahan", (req, res) => {
res.send("Go ahead, and make my day");
});

//sixth route
app.get("/coachtaylor", (req, res) => {
res.send("Clear eyes, full hearts, cant lose");
});

//seventh route
app.get("/foxmulder", (req, res) => {
res.send("The truth is out there");
});

//eight route
app.get("/gollum", (req, res) => {
res.send("My precious");
});

//ninth route
app.get("/rodtidwell", (req, res) => {
res.send("Show me the money!");
});
//tenth route
app.get("/emeril", (req, res) => {
res.send("Bam!");
});

//listner
app.listen(3003, () => {
console.log("Listening for requests on port 3003");
});
Loading