New dashboard widgets
- Custom time range can now be picked - Map now shows accuracy of latest beat - Presets removed
This commit is contained in:
@@ -15,7 +15,7 @@ import { hashPassword, randomPepper, randomString } from './lib/crypto';
|
||||
import { UserType } from './models/user/user.interface';
|
||||
import { User } from './models/user/user.model';
|
||||
import { GetPhone, PostPhone } from './endpoints/phone';
|
||||
import { GetBeat } from './endpoints/beat';
|
||||
import { GetBeat, GetBeatStats } from './endpoints/beat';
|
||||
|
||||
// Load .env
|
||||
dconfig({ debug: true, encoding: 'UTF-8' });
|
||||
@@ -154,6 +154,7 @@ async function run() {
|
||||
app.post('/phone', MW_User, (req, res) => PostPhone(req, res));
|
||||
|
||||
app.get('/beat/', MW_User, (req, res) => GetBeat(req, res));
|
||||
app.get('/beat/stats', MW_User, (req, res) => GetBeatStats(req, res));
|
||||
|
||||
app.listen(config.http.port, config.http.host, () => {
|
||||
logger.info(`HTTP server is running at ${config.http.host}:${config.http.port}`);
|
||||
|
||||
Reference in New Issue
Block a user