Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to route to a pdf file #205

Open
lccambiaghi opened this issue Oct 14, 2020 · 0 comments
Open

How to route to a pdf file #205

lccambiaghi opened this issue Oct 14, 2020 · 0 comments

Comments

@lccambiaghi
Copy link

Hi, I have a very dumb question. If I have a pdf file in my website at https://blog.com/resume.pdf, how could I route to that file?

This is my current code:

(def app-routes
  ["/" {""               :index
        "resume"         :resume
        true             :not-found}])

(def history
  (pushy/pushy set-page! (partial bidi/match-route app-routes)))

(defn pages [path]
  (case (:handler (:current-page @state))
    :index [index]
    :resume "https://blog.com/resume.pdf"
    [not-found]))

Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant