Below Todd Geist shows a simple LiveCode HTTP Server modified to add a Router and Middleware. The architecture borrows from simple light servers like Ruby Sinatra or Node Express.
YOUTUBE cfHLgHCsZTc A LiveCode HTTP server by Todd Geist
# See also - LiveNode Server - SimpleCGI