Skip to content

Commit 447940e

Browse files
committed
Refactor
1 parent dd1ffdc commit 447940e

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 airlinklab
3+
Copyright (c) 2024 airlinklabs
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

example.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
port=3002
2+
key=test

src/routes/core.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { Router, Request, Response } from 'express';
2+
import { meta } from '../../storage/config.json'
23

34
const router = Router();
45
let config = process.env
@@ -7,7 +8,7 @@ router.get('/', async (req: Request, res: Response) => {
78
try {
89
const response = {
910
versionFamily: 1,
10-
versionRelease: 'Airlink ' + config.version,
11+
versionRelease: 'Airlinkd ' + meta.version,
1112
status: 'Online',
1213
remote: config.remote,
1314
};

storage/config.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"meta": {
3+
"version": "1.0.0",
4+
"codename": "Glazzer Fridge"
5+
}
6+
}

0 commit comments

Comments
 (0)