'Having Issue with basic Express routing

So I'm working with Express for the first time, and don't know why one is working and the other does not

If I go to this URL: localhost:3000/profile/:john to hit this route, it will print 'hello world':

app.get('/profile/:name', (req, res) => {
  res.send('hello world');
)

However, if I go to this URL: localhost:3000/profile to hit this route, it gives me a 403 error:

app.get('/profile', (req, res) => {
  res.send('hello world');
)


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source