Add endpoint handling to web server plugin