785 B
785 B
Pharmacy Server
A simple server for dealing with products & orders for the Catgirl Pharmacy.
ToDo:
- Client verification for admin actions
- Webpage for admin actions
- Fetch info with JS
- Fix DB lock error
- Keep track of orders
- Add proper error handling
- Return Json data
- Cleanup code
- Add comments
API:
GET /api/price/<shortcode>
GET /api/stock/<shortcode>
POST /api/update shortcode=string field=[price,stock] value=int/float password=string
POST /api/new full_name=string short_name=string price_usd=float stock=int password=string
POST /api/order name=string user_message=string email=string payment_type=[xmr,eth,btc]
Start the server with the environment variable ADMIN_PASSWD
set to your admin password.