api: use correct app.config idiom for defaults

I don't know what I was thinking earlier. ``app.config.get()`` does what
I want here.