You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: index.js
+10-7Lines changed: 10 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -10,17 +10,20 @@ async function service (req, res) {
10
10
middleware(req,res,()=>{
11
11
letu=url.parse(req.url,true)
12
12
13
+
if(u.pathname==='/ping'){
14
+
res.setHeader('content-type','text/plain')
15
+
returnsend(res,200,"pong")
16
+
}
17
+
13
18
if(u.pathname==='/'){
14
19
res.setHeader('content-type','text/html')
15
20
lethtml=`<!DOCTYPE html>
16
21
<html>
17
-
<title>@isomorphic-git/cors-proxy</title>
18
-
<h1>@isomorphic-git/cors-proxy</h1>
19
-
<p>This is the server software that runs on <a href="https://cors.isomorphic-git.org">https://cors.isomorphic-git.org</a>
20
-
– a free service (generously sponsored by <a href="https://www.clever-cloud.com/?utm_source=ref&utm_medium=link&utm_campaign=isomorphic-git">Clever Cloud</a>)
21
-
for users of <a href="https://isomorphic-git.org">isomorphic-git</a> that enables cloning and pushing repos in the browser.</p>
22
-
<p>The source code is hosted on Github at <a href="https://github.com/isomorphic-git/cors-proxy">https://github.com/isomorphic-git/cors-proxy</a></p>
23
-
<p>It can also be installed from npm with <code>npm install <a href="https://npmjs.org/package/${pkg.name}">@isomorphic-git/cors-proxy</a></code></p>
22
+
<title>@thiagoelg/cors-proxy</title>
23
+
<h1>@thiagoelg/cors-proxy (forked from @isopmorphic-git/cors-proxy)</h1>
24
+
<p>This is the server software for users of <a href="https://isomorphic-git.org">isomorphic-git</a> that enables cloning and pushing repos in the browser.</p>
25
+
<p>The source code is hosted on Github at <a href="https://github.com/thiagoelg/cors-proxy">https://github.com/thiagoelg/cors-proxy</a></p>
26
+
<p>It can also be installed from npm with <code>npm install <a href="https://npmjs.org/package/${pkg.name}">@thiagoelg/cors-proxy</a></code></p>
24
27
25
28
<h2>Terms of Use</h2>
26
29
<p><b>This free service is provided to you AS IS with no guarantees.
0 commit comments