fermyon / bartholomew

The Micro-CMS for WebAssembly and Spin
https://bartholomew.fermyon.dev/
Apache License 2.0
413 stars 50 forks source link

allow optionally prepending route info #183

Closed karthik2804 closed 1 year ago

karthik2804 commented 1 year ago

This PR allows us to optionally prepend the route info which allows us to mount Bartholomew at multiple routes and still serve from the same base content path.

(eg)

assuming Bartholomew is mounted at /spin/... and also at /spin/v1/...

setting prepend_route_info to true will allow us to prepend the path allows us to mount both the modules at the same file mounts and serve content as expected.