Added the correct routing for user api, append router to 'post' or 'get'

passing the '/' parameter specifies the spefic page. fixes #4