mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
7ed9b04c3c
Revert "Migrate chat service to OpenAPI" GitOrigin-RevId: 39bdfd98bc55f8d9d56fb18bb288749aa13f25e0
19 lines
504 B
JavaScript
19 lines
504 B
JavaScript
import http from 'http'
|
|
import metrics from '@overleaf/metrics'
|
|
import logger from '@overleaf/logger'
|
|
import express from 'express'
|
|
import bodyParser from 'body-parser'
|
|
import * as Router from './router.js'
|
|
|
|
metrics.initialize('chat')
|
|
logger.initialize('chat')
|
|
|
|
export const app = express()
|
|
export const server = http.createServer(app)
|
|
|
|
app.use(bodyParser.json())
|
|
app.use(bodyParser.urlencoded({ extended: true }))
|
|
app.use(metrics.http.monitor(logger))
|
|
metrics.injectMetricsRoute(app)
|
|
|
|
Router.route(app)
|