UNPKG

@json-express/core

Version:

Zero-config JSON server with REST API, JWT authentication, HTTPS support, schema validation & search. Perfect for rapid prototyping, API mocking, and development.

15 lines (10 loc) 320 B
import { logJsonRoutes, logServerStart } from '../services/logger-service.js' import { getConfig } from '../db/config-store.js' const createServer = async (app) => { const port = getConfig('port') app.listen(port, () => { logServerStart() logJsonRoutes() }) } export default createServer