Just made it a module for myself

Probably useless to anyone else
But now, it just takes the response object and sends a response