Update server.py for GET and POST of /app