diff options
author | Tim <contact@bytim.eu> | 2025-05-15 20:09:08 +0200 |
---|---|---|
committer | Tim <contact@bytim.eu> | 2025-05-15 20:09:08 +0200 |
commit | 0d62cec021750e42e1b14f6a0d33db998fbffe4a (patch) | |
tree | ebbade144318e547abaa252f00ca3911c47d85c6 /src/chef/utils.clj | |
parent | 587976b8a16b884ccd7b7dba9ff7209772d395ce (diff) | |
download | chef-0d62cec021750e42e1b14f6a0d33db998fbffe4a.tar.xz chef-0d62cec021750e42e1b14f6a0d33db998fbffe4a.zip |
Change oauth flow + create api route to create new category
Diffstat (limited to 'src/chef/utils.clj')
-rw-r--r-- | src/chef/utils.clj | 3 |
1 files changed, 2 insertions, 1 deletions
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")))) |