aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2021-06-21 15:49:14 +0200
committerHampusM <hampus@hampusmat.com>2021-06-21 15:49:14 +0200
commit52ed3de7949a0caca3d6b93955d49513e68c14c3 (patch)
treed22574204e595e7c93b08b38dba096ba8a3d4606
parent09cb1639654ce9f181ee32d7180b88bbbaabf843 (diff)
The info endpoint only responds with the title & about
-rw-r--r--packages/server/src/api/v1.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/server/src/api/v1.ts b/packages/server/src/api/v1.ts
index b0e595d..5b0e7b9 100644
--- a/packages/server/src/api/v1.ts
+++ b/packages/server/src/api/v1.ts
@@ -17,7 +17,7 @@ export default function(fastify: FastifyInstance, opts: FastifyPluginOptions, do
method: "GET",
url: "/info",
handler: (req, reply) => {
- reply.send({ data: opts.config.settings });
+ reply.send({ data: { title: opts.config.settings.title, about: opts.config.settings.about } });
}
});
fastify.route({