Added an HTTP handler for api serving