unifing globals, adding /api/globals