default api
moved to spring. 
Fixed upload photo error. 
todo: should be fixed uploading photo second time.