mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-08 08:53:51 +00:00
refactor: small cleanups (#2059)
* refactor: remove unneeded async * chore: add express Router type to all routes * refactor: don't use index in react key * refactor: correctly get error message in excel route * refactor: avoid exporting muteable values
This commit is contained in:
committed by
GitHub
parent
23a44b2f04
commit
7c1d2f4554
@@ -5,7 +5,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
import express, { type Request, type Response } from 'express';
|
||||
import express, { Router, type Request, type Response } from 'express';
|
||||
import { ErrorResponse, LogOrigin } from 'ontime-types';
|
||||
import { getErrorMessage } from 'ontime-utils';
|
||||
|
||||
@@ -14,7 +14,7 @@ import { logger } from '../classes/Logger.js';
|
||||
import { isEmptyObject } from '../utils/parserUtils.js';
|
||||
import { dispatchFromAdapter } from './integration.controller.js';
|
||||
|
||||
export const integrationRouter = express.Router();
|
||||
export const integrationRouter: Router = express.Router();
|
||||
|
||||
const helloMessage = 'You have reached Ontime API server';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user