added a check for res.locals.isAPI inside res.render, instead of doing it all over the place in code
got rid of all the res.locals.isAPI checks in all controller methods. now 1000% cleaner :shipit: