Create `api/getTopics.js` and add logic for handling `get` requests and returning all the topics in the database.