add endpoint of assignment7

add endpoint of assignment7