From 0a6de5b4adbf0b641b7cc6b29e750a235cfcbf9d Mon Sep 17 00:00:00 2001 From: svemagie <869694+svemagie@users.noreply.github.com> Date: Sun, 8 Mar 2026 18:19:45 +0100 Subject: [PATCH] feat(homepage): add homepage endpoint and mount path --- README.md | 1 + indiekit.config.mjs | 4 ++++ package-lock.json | 20 +++++++++++++++++++- package.json | 1 + 4 files changed, 25 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 69ce73ea..aabdb6cc 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ - Posts management: `/posts` - Files: `/files` - Webmentions moderation + API: `/webmentions` +- Homepage builder UI + API: `/homepage` - Conversations + API: `/conversations` - GitHub activity + API: `/github` - Funkwhale activity + API: `/funkwhale` diff --git a/indiekit.config.mjs b/indiekit.config.mjs index f3b6fe13..0f6ce369 100644 --- a/indiekit.config.mjs +++ b/indiekit.config.mjs @@ -171,6 +171,7 @@ export default { "@rmdes/indiekit-preset-eleventy", "@rmdes/indiekit-endpoint-github", "@rmdes/indiekit-endpoint-webmention-io", + "@rmdes/indiekit-endpoint-homepage", "@rmdes/indiekit-endpoint-conversations", "@rmdes/indiekit-endpoint-funkwhale", "@rmdes/indiekit-endpoint-lastfm", @@ -196,6 +197,9 @@ export default { token: process.env.WEBMENTION_IO_TOKEN, domain: webmentionDomain, }, + "@rmdes/indiekit-endpoint-homepage": { + mountPath: "/homepage", + }, "@rmdes/indiekit-endpoint-conversations": { mountPath: "/conversations", }, diff --git a/package-lock.json b/package-lock.json index 4371d7ef..c19339dd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "@rmdes/indiekit-endpoint-conversations": "^2.1.6", "@rmdes/indiekit-endpoint-funkwhale": "^1.0.11", "@rmdes/indiekit-endpoint-github": "^1.2.3", + "@rmdes/indiekit-endpoint-homepage": "^1.0.22", "@rmdes/indiekit-endpoint-lastfm": "^1.0.12", "@rmdes/indiekit-endpoint-posts": "^1.0.0-beta.25", "@rmdes/indiekit-endpoint-webmention-io": "^1.0.7", @@ -2166,6 +2167,23 @@ "@indiekit/indiekit": ">=1.0.0-beta.25" } }, + "node_modules/@rmdes/indiekit-endpoint-homepage": { + "version": "1.0.22", + "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-homepage/-/indiekit-endpoint-homepage-1.0.22.tgz", + "integrity": "sha512-lvOJOL/OK7VfibutCaHosP8Sk3kPChavHuo4ufYmigsxSI62lHsAUZbkpKrdEY6qbxJv0dr/b9Yax6Hw1jZqIA==", + "license": "MIT", + "dependencies": { + "@indiekit/error": "^1.0.0-beta.25", + "@indiekit/frontend": "^1.0.0-beta.25", + "express": "^5.0.0" + }, + "engines": { + "node": ">=20" + }, + "peerDependencies": { + "@indiekit/indiekit": ">=1.0.0-beta.25" + } + }, "node_modules/@rmdes/indiekit-endpoint-lastfm": { "version": "1.0.12", "resolved": "https://registry.npmjs.org/@rmdes/indiekit-endpoint-lastfm/-/indiekit-endpoint-lastfm-1.0.12.tgz", @@ -5666,6 +5684,7 @@ "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.3.tgz", "integrity": "sha512-5gTmgEY/sqK6gFXLIsQNH19lWb4ebPDLA4SdLP7dsWkIXHWlG66oPuVvXSGFPppYZz8ZDZq0dYYrbHfBCVUb1Q==", "license": "MIT", + "peer": true, "engines": { "node": ">=12" }, @@ -6249,7 +6268,6 @@ "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.7.tgz", "integrity": "sha512-HLpt+uLy/pxB+bum/9DzAgiKS8CX1EvbWxI4zlmgGCExImLdiad2iCwXT5Z4c9c3Eq8rP2318mPW2c+QbtjK8A==", "license": "MIT", - "peer": true, "dependencies": { "ip-address": "^10.0.1", "smart-buffer": "^4.2.0" diff --git a/package.json b/package.json index a6d8e489..5bf25217 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "@rmdes/indiekit-endpoint-conversations": "^2.1.6", "@rmdes/indiekit-endpoint-funkwhale": "^1.0.11", "@rmdes/indiekit-endpoint-github": "^1.2.3", + "@rmdes/indiekit-endpoint-homepage": "^1.0.22", "@rmdes/indiekit-endpoint-lastfm": "^1.0.12", "@rmdes/indiekit-endpoint-posts": "^1.0.0-beta.25", "@rmdes/indiekit-endpoint-webmention-io": "^1.0.7",