fix
This commit is contained in:
parent
d0d8a342af
commit
df307f8db2
10
src/app.ts
10
src/app.ts
|
@ -33,11 +33,11 @@ app.options('*', (req, res) => {
|
|||
app.use(express.json());
|
||||
|
||||
// API маршруты
|
||||
app.use('/api/auth', authRoutes);
|
||||
app.use('/api/admin', adminRoutes);
|
||||
app.use('/api/inventory', inventoryRoutes);
|
||||
app.use('/api/reports', reportRoutes);
|
||||
app.use('/api/year-end', yearEndRoutes);
|
||||
app.use('/auth', authRoutes);
|
||||
app.use('/admin', adminRoutes);
|
||||
app.use('/inventory', inventoryRoutes);
|
||||
app.use('/reports', reportRoutes);
|
||||
app.use('/year-end', yearEndRoutes);
|
||||
|
||||
// Раздача статических файлов в production
|
||||
if (process.env.NODE_ENV === 'production') {
|
||||
|
|
Loading…
Reference in New Issue