From e17cffd340476470546e5c27ff03fa134b6e2236 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Sun, 11 Nov 2018 01:12:38 +0100 Subject: main(): Get a map of POST params Move the call to `params::parse()` from `request::verified()` into `main()`. This enables us to access values from POST params inside the `main()` function. We'll need this to store purchaser name and email address. --- license-generator/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'license-generator/src/lib.rs') diff --git a/license-generator/src/lib.rs b/license-generator/src/lib.rs index 407097a..f83dbbf 100644 --- a/license-generator/src/lib.rs +++ b/license-generator/src/lib.rs @@ -8,10 +8,9 @@ extern crate sha1; extern crate url; -mod params; - pub mod database; pub mod errors; +pub mod params; pub mod purchaser; pub mod request; pub mod response; -- cgit v1.2.3