(bug)use router so user can do post request

fix gitignore