Allow token-authenticated users for sending 'get' request.
Re-organized the code for parsing pattern's config.