Skip to content

Add random alias#9

Open
narthur wants to merge 5 commits intowesbos:mainfrom
narthur:rand
Open

Add random alias#9
narthur wants to merge 5 commits intowesbos:mainfrom
narthur:rand

Conversation

@narthur
Copy link

@narthur narthur commented May 17, 2025

This PR resolves #6.

Test instructions:

Open http://localhost:8080/random and refresh repeatedly

Changes:

  • Adds .tool-versions file, pinning deno version
  • Git-ignores .zed folder so I don't pollute the repo with my project-specific IDE config
  • Corrects the return type of handler in index.ts
  • Updates alias map to use anonymous functions as callbacks so that a new random emoji can be returned on each request
  • Implements a random alias to return a new random emoji on each request
  • Documents the new random alias on the home page

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.

Random emoji endpoint

1 participant