Update project configuration and templates

This commit is contained in:
AVS
2026-08-05 16:56:06 +05:00
parent da6b107066
commit 85fa94ae92
7 changed files with 327 additions and 302 deletions
+7 -5
View File
@@ -25,8 +25,8 @@
<body>
<div class="container">
<div class="nav">
<a href="/admin">Приложения</a>
<a href="/admin/api">API Docs</a>
<a href="/adtn">Приложения</a>
<a href="/adtn/api">API Docs</a>
</div>
<h1>API Документация</h1>
@@ -44,13 +44,15 @@
<h3>Пример PowerShell:</h3>
<pre>$body = @{text = "Alert!"} | ConvertTo-Json
Invoke-RestMethod -Uri "http://localhost:8080/send" -Method Post -Body $body -Headers @{"Content-Type"="application/json"; "X-App-Token"="YOUR_APP_TOKEN"}</pre>
Invoke-RestMethod -Uri "http://localhost:8880/send" -Method Post -Body $body -Headers @{"Content-Type"="application/json"; "X-App-Token"="YOUR_APP_TOKEN"}
# В Docker контейнере порт 8080, снаружи — 8880 (см. docker-compose.yml)</pre>
<h3>Пример cURL:</h3>
<pre>curl -X POST http://localhost:8080/send \
<pre>curl -X POST http://localhost:8880/send \
-H "Content-Type: application/json" \
-H "X-App-Token: YOUR_APP_TOKEN" \
-d '{"text": "Hello!"}'</pre>
-d '{"text": "Hello!"}'
# В Docker контейнере порт 8080, снаружи — 8880</pre>
</div>
<div class="card">
+3 -3
View File
@@ -44,11 +44,11 @@
</div>
<div class="form-group">
<label>Новый пароль</label>
<input type="password" name="new_password" required minlength="6">
<input type="password" name="new_password" required minlength="10">
</div>
<div class="form-group">
<label>Подтверждение пароля</label>
<input type="password" name="confirm_password" required>
<input type="password" name="confirm_password" required minlength="10">
</div>
<button type="submit" class="btn">Изменить пароль</button>
</form>
@@ -59,7 +59,7 @@
document.getElementById('logout').onclick = async (e) => {
e.preventDefault();
await fetch('/logout', { method: 'POST' });
window.location.href = '/login';
window.location.href = '/logtn';
};
document.getElementById('passwordForm').onsubmit = async (e) => {