add server script
add route handler logic
finish json-api-server