Why do this via a request and not just call the function directly?  You're in the same app.