Skip to content

Commit

Permalink
doing a test to see if byuid and personid come through
Browse files Browse the repository at this point in the history
  • Loading branch information
benrencher committed Oct 16, 2024
1 parent 2882893 commit 0416b55
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions src/clj/y_video_back/routes/home.clj
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,20 @@
(defn hello-page [request]
(layout/render request "hello.html"))

(defn index-page [{:keys [username netid personid] :as request}]
(defn index-page [{:keys [username byuid personid] :as request}]
(println (get-in request [:query-params]))
(println (get-in request [:query-params]))
(if-not username
(layout/render request "index.html" {:logged-in false})
(let [session-id (uc/get-session-id username)]
;(println "checking user courses")
(check-courses-with-api username)
;(println (str "user from CAS: " username))
;(println (str "serving session-id from home.clj: " session-id))
(layout/render (assoc request :session-id session-id) "index.html" {:logged-in true}))))
(
{:get (constantly (response/ok {:username username :byuid byuid :personid personid}))}
;; let [session-id (uc/get-session-id username)]
;; ;(println "checking user courses")
;; (check-courses-with-api username)
;; ;(println (str "user from CAS: " username))
;; ;(println (str "serving session-id from home.clj: " session-id))
;; (layout/render (assoc request :session-id session-id) "index.html" {:logged-in true})
)))

(defn get-routes-r
"Recursive helper for get-routes"
Expand Down

0 comments on commit 0416b55

Please sign in to comment.