tickt db übernahme
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import express from 'express'
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { config, assertServerConfig } from './config.js'
|
||||
import { config, assertServerConfig, WOMS_DATABASE_ID } from './config.js'
|
||||
import { sessionMiddleware } from './middleware/session.js'
|
||||
import authRoutes from './routes/auth.js'
|
||||
import projectsRoutes from './routes/projects.js'
|
||||
@@ -23,7 +23,12 @@ app.use('/api/features', featuresRoutes)
|
||||
app.use('/webhook', giteaWebhookRoutes)
|
||||
|
||||
app.get('/api/health', (_req, res) => {
|
||||
res.json({ ok: true, service: 'webklar-kundenbereich' })
|
||||
res.json({
|
||||
ok: true,
|
||||
service: 'webklar-kundenbereich',
|
||||
databaseId: WOMS_DATABASE_ID,
|
||||
endpoint: config.appwrite.endpoint,
|
||||
})
|
||||
})
|
||||
|
||||
app.use(express.static(publicDir))
|
||||
|
||||
Reference in New Issue
Block a user