-
Notifications
You must be signed in to change notification settings - Fork 2
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
Nice to know :) #48
Comments
waaaat how did I not know about that?! time to change every workshop... @nikkesan can you post that in Slack so everyone can see it? |
@oliverjam I swear this used to be in the Tech Spike 😆 It's in bullet point three here |
@Albadylic we have been using |
Will post on slack 👍 |
week4-harl/handlers/public.js
Line 14 in e524c34
I recall a previous mentor giving us this pro tip to use the 'path' module to return the endpoint file extension quite elegantly.
https://nodejs.org/api/path.html#path_path_extname_path
So you could use something like:
The text was updated successfully, but these errors were encountered: