Typescript migration:
* resources/frontendResource.js * resources/taskResource.js * resources/versionResource.js Also some refactoring towards using promises with async / await.
This commit is contained in:
parent
b1755047af
commit
31ecc0cf4f
10 changed files with 191 additions and 196 deletions
server/resources
12
server/resources/versionResource.ts
Normal file
12
server/resources/versionResource.ts
Normal file
|
@ -0,0 +1,12 @@
|
|||
import {success} from "../utils/resources";
|
||||
import {version} from "../config";
|
||||
import {Request, Response} from "express";
|
||||
|
||||
export function get (req: Request, res: Response): void {
|
||||
success(
|
||||
res,
|
||||
{
|
||||
version
|
||||
}
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue