An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
fix: Accept logged and not logged user in /base
The Mark4448b86b9330
diff --git a/apps/api/src/routes/api/v1/base/index.ts b/apps/api/src/routes/api/v1/base/index.tsindex 76854af8a8..622a5aa4f8 100644--- a/apps/api/src/routes/api/v1/base/index.ts+++ b/apps/api/src/routes/api/v1/base/index.ts@@ -2,6 +2,14 @@ import { FastifyPluginAsync } from 'fastify';import { errorHandler, listSettings, version } from '../../../../lib/common';const root: FastifyPluginAsync = async (fastify): Promise<void> => {+ fastify.addHook('onRequest', async (request) => {+ try {+ return await request.jwtVerify();+ } catch(error){+ return {};+ }+ })+fastify.get('/', async (request) => {const teamId = request.user?.teamId;const settings = await listSettings()