For quite some time, I hated Falcon's class maps approach that caused more chaos than good for Szurubooru. I've taken a look at the other frameworks (hug, flask, etc) again, but they all looked too bloated/over-engineered. I decided to just talk to WSGI myself. Regex-based routing may not be the fastest in the world, but I'm fine with response time of 10 ms for cached /posts.
2 lines
88 B
Python
2 lines
88 B
Python
from szurubooru.rest.app import application
|
|
from szurubooru.rest.context import Context
|