Move request handling logic out of routes into separate util file
Handle post and gets related to tiles