diff options
author | HampusM <hampus@hampusmat.com> | 2021-06-21 15:49:14 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2021-06-21 15:49:14 +0200 |
commit | 52ed3de7949a0caca3d6b93955d49513e68c14c3 (patch) | |
tree | d22574204e595e7c93b08b38dba096ba8a3d4606 /packages/server/src/api/v1.ts | |
parent | 09cb1639654ce9f181ee32d7180b88bbbaabf843 (diff) |
The info endpoint only responds with the title & about
Diffstat (limited to 'packages/server/src/api/v1.ts')
-rw-r--r-- | packages/server/src/api/v1.ts | 2 |
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({ |