franklindyer / agora-app

Simple and (hopefully) secure social media application. Also a project for spring 2024 CS 444 cybersecurity class at UNM.
4 stars 1 forks source link

Search functionality added #42

Closed franklindyer closed 6 months ago

franklindyer commented 6 months ago

You can now search for users or posts by making a POST request to /search with either the user or post argument set to your query string of choice. The query type and results are passed to the template at data["querytype"] and data["results"] respectively.

I added a very rudimentary "results" page template as an example and for debugging only, you can totally overhaul it for the front end as needed.

altheaden commented 6 months ago

I tested and this works. I will merge in now and hook it up with the frontend later.