Fork me on GitHub
#yada
<
2017-09-27
>
ThadIsNOTFood15:09:40

Hi, SevereOverfl0w on Reddit said I should join up here 🙂 Nice to meet everyone. I'm working on a Yada/Edge:AngularJS system and I'm fairly new to Clojure myself.

ThadIsNOTFood16:09:41

Okay question one: I'm de-cljsing my edge install and the package is still looking for index.html in templates. Should I remove that route and let the web server deal with it, or how to I change the path on that?

mccraigmccraig16:09:32

hmm, dunno - my yada-use predates edge somewhat, so i've never used it

dominicm16:09:57

👋 @thaddeus.aid I am SevereOverfl0w

dominicm16:09:43

I'm a bit confused by your question 🙂

ThadIsNOTFood16:09:44

@dominicm nice to meet you and thank you for the help so far 🙂

ThadIsNOTFood16:09:10

Okay, so like you suggested I put my angular app in resources/ but when I start the server it is bringing up resources/template/index.html this I don't want on a GET / I want to serve resources/index.html

ThadIsNOTFood16:09:42

but I also need to ensure that I am also serving the associated files such as app.css and app.js

dominicm16:09:02

removing the special exception for index.html from bidi should do the job!

ThadIsNOTFood16:09:37

What should I be looking for to do that? I'm sorry I'm normally a Java programmer

dominicm16:09:54

No problem! Glad to be helpful

frozenlock21:09:03

Is there a conventional approach in Yada (or more generally HTTP) for requesting a resource that doesn't exists yet? And perhaps have a way to let the user know the progress? Let's take an example: The user can request a PDF report that takes a few seconds/minutes to generate. If it was already generated, great, simply return it. But what if the client needs to come back a little later?

tanzoniteblack21:09:07

@frozenlock https://httpstatuses.com/202 http status 202 is a common way to denote this, but as far as I'm aware, there's no official standard for that use case

frozenlock21:09:15

@tanzoniteblack Thanks! I suppose I could include the ETA or some sort of progress % in the body.

ThadIsNOTFood23:09:44

okay been playing with everything today. I'm setting up a JWT token auth pattern for the end user using Google Oauth and I have Google returning the Bearer Token to an end point, now what is the best way to verify the google Bearer token and turn it into a JWT auth token for my use?