Homepage Redesign
This commit is contained in:
@@ -19,6 +19,7 @@ import { fuelLogsRoutes } from './features/fuel-logs/api/fuel-logs.routes';
|
||||
import { stationsRoutes } from './features/stations/api/stations.routes';
|
||||
import { documentsRoutes } from './features/documents/api/documents.routes';
|
||||
import { maintenanceRoutes } from './features/maintenance';
|
||||
import { platformRoutes } from './features/platform';
|
||||
|
||||
async function buildApp(): Promise<FastifyInstance> {
|
||||
const app = Fastify({
|
||||
@@ -70,7 +71,7 @@ async function buildApp(): Promise<FastifyInstance> {
|
||||
status: 'healthy',
|
||||
timestamp: new Date().toISOString(),
|
||||
environment: process.env.NODE_ENV,
|
||||
features: ['vehicles', 'documents', 'fuel-logs', 'stations', 'maintenance']
|
||||
features: ['vehicles', 'documents', 'fuel-logs', 'stations', 'maintenance', 'platform']
|
||||
});
|
||||
});
|
||||
|
||||
@@ -80,7 +81,7 @@ async function buildApp(): Promise<FastifyInstance> {
|
||||
status: 'healthy',
|
||||
scope: 'api',
|
||||
timestamp: new Date().toISOString(),
|
||||
features: ['vehicles', 'documents', 'fuel-logs', 'stations', 'maintenance']
|
||||
features: ['vehicles', 'documents', 'fuel-logs', 'stations', 'maintenance', 'platform']
|
||||
});
|
||||
});
|
||||
|
||||
@@ -106,6 +107,7 @@ async function buildApp(): Promise<FastifyInstance> {
|
||||
});
|
||||
|
||||
// Register Fastify feature routes
|
||||
await app.register(platformRoutes, { prefix: '/api' });
|
||||
await app.register(vehiclesRoutes, { prefix: '/api' });
|
||||
await app.register(documentsRoutes, { prefix: '/api' });
|
||||
await app.register(fuelLogsRoutes, { prefix: '/api' });
|
||||
|
||||
Reference in New Issue
Block a user