Skip to content

Commit

Permalink
update command
Browse files Browse the repository at this point in the history
  • Loading branch information
ntotten committed Feb 7, 2025
1 parent d44001d commit e4f1911
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion middleware.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export default function middleware(request: Request) {
if (request.method === "GET" && request.url === "/") {
const url = new URL(request.url);
if (request.method === "GET" && url.pathname === "/") {
const accept = request.headers.get("accept");
if (!accept?.includes("text/html")) {
return new Response(crypto.randomUUID(), {
Expand Down
2 changes: 1 addition & 1 deletion src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export default function UUIDGenerator() {
</Button>
</div>
<code className="font-mono text-sm text-gray-300">
sh https://uuid.new
curl https://uuid.new
</code>
</div>
</div>
Expand Down

0 comments on commit e4f1911

Please sign in to comment.