added a server router for POST req, and added method for entitymanager