Changed base path to relative path. Fixed a bug with the query route.