You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I implemented the Door Activity Prompt. You can add to the database with a command that looks like the following:
INSERT INTO "DoorActivities" (title, instruction, has_link, link, has_media, type_of_media, media_url) VALUES ('test', 'testinstr', true, 'linkthis', true, 'photo', 'mediatest');
However, I wasn't able to get the link to work: http://localhost:8000/api/dooractivity—need some help there!
The text was updated successfully, but these errors were encountered:
I was running into this problem too but I found out that we were just missing parameters in our url.
In my router file, I had router.get("/:title", promptController.getScreenSaverPrompt), so to access data from the get request. the " :title " is requesting a keyword to search for the your database.
So my url would be: http://localhost:8000/api/screen-saver-prompt/test [replace 'test' with whatever title you want to look up in your database].
So on that same note, I think if you do http://localhost:8000/api/dooractivity/test, it should return a JSON file with the test data you created above using the INSERT INTO function.
For the post request, I was only able to get it to work through postman but let me know if that fixed your issue.
I implemented the Door Activity Prompt. You can add to the database with a command that looks like the following:
INSERT INTO "DoorActivities" (title, instruction, has_link, link, has_media, type_of_media, media_url) VALUES ('test', 'testinstr', true, 'linkthis', true, 'photo', 'mediatest');
However, I wasn't able to get the link to work: http://localhost:8000/api/dooractivity—need some help there!
The text was updated successfully, but these errors were encountered: