correcting misunderstanding about require and directories. Merging all routes into one file.