No description
Find a file
2023-07-02 18:47:45 -04:00
src hi 2023-07-02 18:45:41 -04:00
.gitignore hi 2023-07-02 18:45:41 -04:00
Cargo.lock hi 2023-07-02 18:45:41 -04:00
Cargo.toml hi 2023-07-02 18:45:41 -04:00
config.example hi 2023-07-02 18:45:41 -04:00
LICENSE hi 2023-07-02 18:45:41 -04:00
README.md more info 2023-07-02 18:47:45 -04:00

bashttp

A very goofy http server that runs scripts based of the given URI route

Config

All routs and scripts must be layed out in a file called config, or you can specift the path by setting the CONFIG_PATH env variable.

An example config is shown below

/ ./hello_world
/neo /usr/bin/neofetch
/joe ./bide

As shown above, each route to script is a single line seperated by a single space.

Scripts

The request body (if it has one) is set to argument 1 of the script. If there was on body provided the argument will be left empty. Anything written to the scripts stdout will be returnd to the http request.

License

This project is licensed under the WTFPL

Warrenty

This project is probably not secure and if it beaks, uh... have fun

...wtfpl