Add get
Remove duplication in get and post