Added extra HTTP boilerplate allowing us to have endpoints in separated files

This commit is contained in:
2024-12-21 22:45:17 +01:00
parent 7e8fcc766a
commit eb2648d31f
5 changed files with 228 additions and 236 deletions

View File

@ -3,7 +3,7 @@ import express, { Application } from 'express'
import config from './utilities/config'
import { getAppPath } from './utilities/storage'
import { createServer as httpServer, Server as HTTPServer } from 'http'
import { addHttpRoutes } from './utilities/http'
import { addHttpRoutes } from './http'
import cors from 'cors'
import { Server as SocketServer } from 'socket.io'
import { Authentication } from './middleware/authentication'