Skip to content

Commit

Permalink
Add Go module support for cors and authn (#124)
Browse files Browse the repository at this point in the history
Add the plumbing required to resolve the connectrpc.com/authn and
connectrpc.com/cors import paths (proposed and approved in #123).
  • Loading branch information
akshayjshah authored Jan 12, 2024
1 parent 9832b88 commit 33ddf51
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
17 changes: 17 additions & 0 deletions static/authn.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html>
<head>
<meta
name="go-import"
content="connectrpc.com/authn git https://github.com/connectrpc/authn-go"
/>
<meta
http-equiv="refresh"
content="0; url=https://pkg.go.dev/connectrpc.com/authn"
/>
</head>
<body>
API documentation for <code>connectrpc.com/authn</code> is on
<a href="https://pkg.go.dev/connectrpc.com/authn">pkg.go.dev</a>.
</body>
</html>
17 changes: 17 additions & 0 deletions static/cors.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!doctype html>
<html>
<head>
<meta
name="go-import"
content="connectrpc.com/cors git https://github.com/connectrpc/cors-go"
/>
<meta
http-equiv="refresh"
content="0; url=https://pkg.go.dev/connectrpc.com/cors"
/>
</head>
<body>
API documentation for <code>connectrpc.com/cors</code> is on
<a href="https://pkg.go.dev/connectrpc.com/cors">pkg.go.dev</a>.
</body>
</html>
10 changes: 10 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"trailingSlash": true,
"redirects": [
{
"source": "/authn/",
"destination": "/authn.html",
"permanent": true
},
{
"source": "/conformance/",
"destination": "/conformance.html",
Expand All @@ -11,6 +16,11 @@
"destination": "/connect.html",
"permanent": true
},
{
"source": "/cors/",
"destination": "/cors.html",
"permanent": true
},
{
"source": "/grpchealth/",
"destination": "/grpchealth.html",
Expand Down

0 comments on commit 33ddf51

Please sign in to comment.