35 lines
1.6 KiB
HTML
35 lines
1.6 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="zh-TW">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Momentry API 文件</title>
|
|
<style>
|
|
* { margin: 0; padding: 0; box-sizing: border-box; }
|
|
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: #f5f5f5; color: #333; padding: 40px; }
|
|
.container { max-width: 900px; margin: 0 auto; background: white; border-radius: 12px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); padding: 40px; }
|
|
h1 { font-size: 28px; margin-bottom: 8px; }
|
|
p.subtitle { color: #666; margin-bottom: 24px; }
|
|
table { width: 100%; border-collapse: collapse; }
|
|
tr { border-bottom: 1px solid #eee; }
|
|
tr:last-child { border: none; }
|
|
td { padding: 10px 0; }
|
|
td.cn { width: 140px; font-weight: 600; color: #333; }
|
|
td.en { color: #666; font-size: 14px; }
|
|
a { color: #0066cc; text-decoration: none; display: block; }
|
|
a:hover td { background: #f8f8f8; border-radius: 4px; }
|
|
.topbar { display: flex; justify-content: space-between; align-items: baseline; }
|
|
.logout-btn { font-size: 13px; color: #999; text-decoration: none; }
|
|
.logout-btn:hover { color: #cc0000; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="topbar">
|
|
<h1>Momentry API 文件</h1>
|
|
<a class="logout-btn" href="#" onclick="fetch('/api/v1/auth/logout',{method:'POST'}).then(()=>window.location.reload());return false">Logout</a>
|
|
</div>
|
|
<p class="subtitle">API 參考手冊 — 登入後可瀏覽各模組文件</p>
|
|
<table><tr onclick="window.location='11_error_codes.html'" style="cursor:pointer"><td class="cn">錯誤碼</td><td class="en">Error Codes</td></tr></table>
|
|
</div>
|
|
</body>
|
|
</html> |