๐Ÿ‘ฝ erick

Since I woke up early today (again) I decided to continue working on my tiny bookmarks app.

I ended up writing a small server app in python that when used it looks pretty similar to how a FastAPI would look. I initialize my server with something like:

server = Server(base_url, router_class)

Define route handlers using something like

@server("/foo")
def foo_handler():
    return something_cool()

Finally, somewher in main, I call:

server.handle()

And it works ๐Ÿค“. So far I have a StringRouter and a RegexRouter that work for whatever I've been messing with.

2 weeks ago ยท ๐Ÿ‘ dk

Actions

๐Ÿ‘‹ Join Station