Can anyone help me rearrange my file structure to make sure I can properly set up my backend?

I have been creating the frontend for my web app for a while, and now I need to connect it to my backend. Can anyone give some ideas on how I need to shift my project to make sure I can accommodate all calls to the backend.

Github repo: GitHub - jesuschrist-immanuel/stack-overflow-clone