I have 2 apps made in Flask, an API which gets and sends data from an sqlite database. And a Flask web app with a jinja template in a template folder. i want to run both the api and web app on an apache server, preferably at 2 different paths on the site. so for the app i'd want /reservations and the api /api. ive tried doing this with WSGI on the Apache Ubuntu server, and making 2 different .wsgi files for each application, and pointing to those in the /available-sites/default.conf. so i visit the webpage at x.x.x.x/reservations and the Web App works fine and shows the page properly, with the data showing successfully which it pulled from the database through the API. but when i try to curl the API by itself at x.x.x.x/api/rooms (function to show all the data within the rooms table) i get a 404. the app and API are running on different ports so that couldnt be the issue.
so i'm wondering if it is even possible to run 2 apps like this through wsgi. thanks in advance.