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

Small example /pages/api endpoint using node-http #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

commandodev
Copy link

No description provided.

Comment on lines +39 to +46
-- _sayHi :: String -> Aff String
-- _sayHi name = do
-- delay $ Milliseconds 100.0
-- pure $ "hello " <> name
-- sayHiDelayed :: String -> Effect (Promise String)
-- sayHiDelayed name = fromAff $ _sayHi name
-- sayHiNow :: EffectFn1 String (Promise String)
-- sayHiNow = mkEffectFn1 sayHiDelayed
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this testing code? Can it be removed?

@@ -59,7 +59,7 @@ mkHome = do
, children:
[ R.img
{ className: "shadow-2xl"
, src: "https://source.unsplash.com/IuLgi9PWETU"
, src: "https://source.unsplash.com/cvBBO4PzWPg"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My coffee! 😲

@@ -59,7 +59,7 @@ mkHome = do
, children:
[ R.img
{ className: "shadow-2xl"
, src: "https://source.unsplash.com/IuLgi9PWETU"
, src: "https://source.unsplash.com/cvBBO4PzWPg"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
, src: "https://source.unsplash.com/cvBBO4PzWPg"
, src: "https://source.unsplash.com/tU3Bl2If2RM"

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

Successfully merging this pull request may close these issues.

3 participants