From 4097e922684ad44e0c4159f0a7388aa1589c9e85 Mon Sep 17 00:00:00 2001 From: eraden Date: Sun, 17 Apr 2022 22:15:09 +0200 Subject: [PATCH] Improve tests --- .env | 1 + api/assets/index.html | 78 ++++++++++++++++++++----- api/src/main.rs | 6 +- api/src/model.rs | 20 ++----- api/src/routes/admin/api_v1/products.rs | 9 ++- api/src/routes/admin/api_v1/stocks.rs | 9 ++- 6 files changed, 83 insertions(+), 40 deletions(-) diff --git a/.env b/.env index 377d163..2d28a08 100644 --- a/.env +++ b/.env @@ -1,3 +1,4 @@ DATABASE_URL=postgres://postgres@localhost/bazzar PASS_SALT=18CHwV7eGFAea16z+qMKZg RUST_LOG=debug +KEY_SECRET="NEPJs#8jjn8SK8GC7QEC^*P844UgsyEbQB8mRWXkT%3mPrwewZoc25MMby9H#R*w2KzaQgMkk#Pif$kxrLy*N5L!Ch%jxbWoa%gb" diff --git a/api/assets/index.html b/api/assets/index.html index 6e3c8dc..71611da 100644 --- a/api/assets/index.html +++ b/api/assets/index.html @@ -17,9 +17,11 @@ justify-content: space-between; width: 600px; } + fieldset > label { width: 45%; } + fieldset > input, fieldset > textarea { width: 54%; } @@ -31,7 +33,15 @@
-
+ +
+ + +