link to help is now labeld API, help updated
Some checks are pending
Docker Build and Push / build-and-push (push) Waiting to run
Some checks are pending
Docker Build and Push / build-and-push (push) Waiting to run
This commit is contained in:
4
main.go
4
main.go
@@ -92,7 +92,7 @@ func helpHandler(w http.ResponseWriter, r *http.Request) {
|
|||||||
<p><code>http://localhost:8080/api/password</code></p>
|
<p><code>http://localhost:8080/api/password</code></p>
|
||||||
<h2>Beispiele:</h2>
|
<h2>Beispiele:</h2>
|
||||||
<h3>Mac/Linux (Terminal):</h3>
|
<h3>Mac/Linux (Terminal):</h3>
|
||||||
<pre>curl http://localhost:8080/api/password</pre>
|
<pre>echo $(curl -s http://localhost:8080/api/password)</pre>
|
||||||
<h3>Windows (PowerShell):</h3>
|
<h3>Windows (PowerShell):</h3>
|
||||||
<pre>Invoke-RestMethod -Uri http://localhost:8080/api/password</pre>
|
<pre>Invoke-RestMethod -Uri http://localhost:8080/api/password</pre>
|
||||||
<h3>Windows (cmd):</h3>
|
<h3>Windows (cmd):</h3>
|
||||||
@@ -217,7 +217,7 @@ html := fmt.Sprintf(
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a href="/help" class="help-link">?</a>
|
<a href="/help" class="help-link">API</a>
|
||||||
<h1>Generiertes Passwort</h1>
|
<h1>Generiertes Passwort</h1>
|
||||||
<div id="password">%s</div>
|
<div id="password">%s</div>
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
|
|||||||
Reference in New Issue
Block a user