finish endpoint changes in frontend code
change endpoints in middleware urls