ffffng/server/resources/versionResource.ts
baldo 250353edbf Major refactoring and fixes.
* Split Node into multiple types and make sure fields are actually set
  when type says so.
* Refactor request handling.
* Start getting rid of moment as a dependency by using
  UnixTimestampSeconds instead.
2022-07-21 18:39:33 +02:00

6 lines
145 B
TypeScript

import {handleJSON} from "../utils/resources";
import {version} from "../config";
export const get = handleJSON(async () => ({
version
}));