You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Falcon Framework
Hi,
I am writing Rest in Falcon ..I have some scenario like:
Lets say i have file A.py which have some /a api and i have one more file B.py which have api /b.
And i want to load both A.py and B.py using some c.py in uwsgi...so once i launch c.py ...both API should be accessible.
Thanks
Sumit
Kurt G. | @kgriffs
unread,
Dec 2, 2016, 3:43:22 PM12/2/16
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Falcon Framework
Hi Sumit, I haven't tried this myself, but these instructions for Flask should be applicable to Falcon, since instances of falcon.API are just WSGI callables (as are instances of flask.Flask):
Within your Falcon app, req.path will not include the mount point (SCRIPT_NAME) prefix, so your routes don't need to include it. However, if you need to, you can access the prefix via req.app, and properties such as req.uri will include SCRIPT_NAME to derive the full path.