Currently, when Lichen does a thing, like edit.cgi, it queries the file to edit like the following: edit.cgi/index.gmi. This can be gotten from the env variable PATH_INFO. This works well, but causes issues when you want to do any relative file importing, e.g. JS imports.
This PR moves to using query strings instead of the direct path, e.g. edit.cgi?/index.cgi. This allows us to use the QUERY_STRING env variable, which is also super standard and simple, and makes it possible to import files in the JS.
The importing is important so we can increase our test coverage of our basic utilities and further extract utilities to simplify maintenance and have more confidence going forward in bugfixes and improvements.
Currently, when Lichen does a thing, like `edit.cgi`, it queries the file to edit like the following: `edit.cgi/index.gmi`. This can be gotten from the env variable `PATH_INFO`. This works well, but causes issues when you want to do any relative file importing, e.g. [JS imports](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import).
This PR moves to using query strings instead of the direct path, e.g. `edit.cgi?/index.cgi`. This allows us to use the `QUERY_STRING` env variable, which is also super standard and simple, and makes it possible to import files in the JS.
The importing is important so we can increase our test coverage of our basic utilities and further extract utilities to simplify maintenance and have more confidence going forward in bugfixes and improvements.