Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ dist
**/dist
.vagrant
.env
**/meta
**/.vite
.turbo
apps/backend/test/dns
Expand Down
79 changes: 79 additions & 0 deletions apps/backend/drizzle/meta/0000_snapshot.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
{
"version": "6",
"dialect": "sqlite",
"id": "6c9c550f-7d6b-42e6-b545-014bcb5d2fb8",
"prevId": "00000000-0000-0000-0000-000000000000",
"tables": {
"users": {
"name": "users",
"columns": {
"id": {
"name": "id",
"type": "integer",
"primaryKey": true,
"notNull": true,
"autoincrement": true
},
"email": {
"name": "email",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"password_hash": {
"name": "password_hash",
"type": "text",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"is_admin": {
"name": "is_admin",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false,
"default": false
},
"created_at": {
"name": "created_at",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
},
"updated_at": {
"name": "updated_at",
"type": "integer",
"primaryKey": false,
"notNull": true,
"autoincrement": false
}
},
"indexes": {
"users_email_unique": {
"name": "users_email_unique",
"columns": [
"email"
],
"isUnique": true
}
},
"foreignKeys": {},
"compositePrimaryKeys": {},
"uniqueConstraints": {},
"checkConstraints": {}
}
},
"views": {},
"enums": {},
"_meta": {
"schemas": {},
"tables": {},
"columns": {}
},
"internal": {
"indexes": {}
}
}
13 changes: 13 additions & 0 deletions apps/backend/drizzle/meta/_journal.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"version": "7",
"dialect": "sqlite",
"entries": [
{
"idx": 0,
"version": "6",
"when": 1748690684367,
"tag": "0000_strong_ronan",
"breakpoints": true
}
]
}
2 changes: 2 additions & 0 deletions apps/backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import { corsMiddleware } from './middlewares/cors';
import morganMiddleware from './middlewares/morgan';
import dnsRoutes from './routes/dnsRoutes';
import httpRoutes from './routes/httpRoutes';
import dhcpRoutes from './routes/dhcpRoutes';
import systemMetricsRoutes from './routes/systemMetricsRoutes';
import logger from './lib/logger';

Expand All @@ -34,6 +35,7 @@ app.use('/api/services', serviceRoutes);
app.use('/api/users', userRoutes);
app.use('/api/dns', dnsRoutes);
app.use('/api/http', httpRoutes);
app.use('/api/dhcp', dhcpRoutes);
app.use('/api/system-metrics', systemMetricsRoutes);

// Error handling
Expand Down
Loading