Skip to content

Conversation

@HeirJordan3
Copy link
Contributor

No description provided.

const app: Express = express();
const port = process.env.PORT || 3000;

app.use(express.static('ts-node-express/Jordan'));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrong directory.


app.use(express.static('ts-node-express/Jordan'));

app.get("/", (req: Request, res: Response) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't need this if you fix the static middleware above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants