update path and serve api