Files
speckle-server/packages/server/modules/core/rest/static.ts
T
2025-01-15 13:00:20 +01:00

12 lines
342 B
TypeScript

import { packageRoot } from '@/bootstrap'
import * as express from 'express'
import * as path from 'path'
export default (app: express.Application) => {
app.use('/static', express.static(path.join(packageRoot, 'assets', 'public')))
app.use('/api/ping', (_, res) => {
res.set('Content-Type', 'text/plain')
res.send('pong')
})
}