diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c6ca7a..356f676 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.7.3] - 2026-06-08 + +### Fixed +- Health endpoint typo: `s` → `seconds` in uptime string formatting +- Request counter middleware moved before route registrations (was never executing) +- Request counter now properly tracks all API requests and errors + ## [1.7.2] - 2026-06-08 ### Added diff --git a/package.json b/package.json index f9388bf..a2e2da8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "AniKotoAPI", - "version": "1.0.0", + "version": "1.7.3", "description": "A restful API to provide all information about anime from anikototv.to", "main": "./server.js", "scripts": { diff --git a/src/routes/apiRoutes.js b/src/routes/apiRoutes.js index 8815f70..a5ad56d 100644 --- a/src/routes/apiRoutes.js +++ b/src/routes/apiRoutes.js @@ -361,7 +361,7 @@ app.get("/api/health", (req, res) => { success: true, results: { status: "healthy", - version: "1.7.2", + version: "1.7.3", uptime: `${hours}h ${minutes}m ${seconds}s`, uptimeSeconds: uptime, timestamp: new Date().toISOString(), @@ -407,7 +407,7 @@ app.get("/api/openapi", (req, res) => { info: { title: "AniKotoAPI", description: "Free REST API for anime data from anikototv.to", - version: "1.7.2", + version: "1.7.3", contact: { name: "Shinei Nouzen", url: "https://github.com/Shineii86/AniKotoAPI",