struct change dir routes -> api