terrier-repo/bodyparser/splitQueryString.ts
/**
* Seperates the path from the query string
* @param path The full pathname from request URL
* @return {string} The pathname without query string
*/
export function splitQueryString(path: string) {
return path.split("?")[0];
}