📡 BWS API Documentation

Served on shared port 8080 (api.local.com)

This site demonstrates virtual hosting with multiple sites sharing the same port.

Available API Endpoints

GET /api/health

Returns the server health status and timestamp.

curl http://api.localhost:8082/api/health

GET /api/file

Returns the content of a specified file.

curl "http://api.localhost:8082/api/file?path=config.toml"

GET /api/sites

Returns information about all configured sites (future feature).

curl http://api.localhost:8082/api/sites

Testing Virtual Hosting (Shared Port)

Main Site

Access the main site: http://www.local.com:8080

Blog Site

Access the blog: http://blog.local.com:8080

Dev Site

Access development: http://dev.local.com:8080