From 0d62cec021750e42e1b14f6a0d33db998fbffe4a Mon Sep 17 00:00:00 2001 From: Tim Date: Thu, 15 May 2025 20:09:08 +0200 Subject: Change oauth flow + create api route to create new category --- src/chef/utils.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/chef/utils.clj') diff --git a/src/chef/utils.clj b/src/chef/utils.clj index 3170be9..f909c52 100644 --- a/src/chef/utils.clj +++ b/src/chef/utils.clj @@ -14,4 +14,5 @@ `(if (some? (get-in ~request [:session :oauth-token])) (do ~@body) ~(-> (ruresp/response "Unauthorized.") - (ruresp/status 401)))) + (ruresp/status 302) + (ruresp/header "Location" "/auth")))) -- cgit v1.2.3