pepega페페가 – 17-18 Jan 17

Hi I am using express and EJS, and creating a link shortener, when the link gets generated, I added this icon next to it, when clicked, it should lead to chart.ejs and therefore it renders the info about that link, like the clicks, url, etc... But in my express route, I need to query db for url data first, call chart.ejs with app.render("chart", {urldata}) and inside of that file I render data from urlData that we fetched from db, now how can I, when the form is submitted, pass in the url string, so that route handler will actually know what url to look for in mongodb? Ik its messy but im trying out express for the first time
1 Reply
reactibot
reactibot2y ago
This thread hasn’t had any activity in 12 hours, so it’s now locked. Threads are closed automatically after 12 hours. If you have a followup question, you may want to reply to this thread so other members know they're related. https://discord.com/channels/102860784329052160/565213527673929729/1064956910413021224 Question not getting answered? Maybe it's hard to answer, or maybe you asked at a slow time. Check out these resources for help asking a good question: https://stackoverflow.com/help/how-to-ask http://wp.me/p2oIwo-26