mirror of
https://github.com/AutoMaker-Org/automaker.git
synced 2026-02-04 21:23:07 +00:00
- Introduced a new command for fetching and validating GitHub issues, allowing users to address issues directly from the command line. - Added a release command to bump the version of the application and build the Electron app, ensuring version consistency across UI and server packages. - Updated package.json files for both UI and server to version 0.7.1, reflecting the latest changes. - Implemented version utility in the server to read the version from package.json, enhancing version management across the application.
17 lines
365 B
TypeScript
17 lines
365 B
TypeScript
/**
|
|
* GET / endpoint - Basic health check
|
|
*/
|
|
|
|
import type { Request, Response } from 'express';
|
|
import { getVersion } from '../../../lib/version.js';
|
|
|
|
export function createIndexHandler() {
|
|
return (_req: Request, res: Response): void => {
|
|
res.json({
|
|
status: 'ok',
|
|
timestamp: new Date().toISOString(),
|
|
version: getVersion(),
|
|
});
|
|
};
|
|
}
|