Compare commits
No commits in common. "314606adddd44454a7dd3b3f3945aad6638306fa" and "3e940c2db58bfbb6d03ae3b543ab8692c456acad" have entirely different histories.
314606addd
...
3e940c2db5
@ -1,22 +0,0 @@
|
|||||||
import { Get, JsonController } from 'routing-controllers';
|
|
||||||
import { OpenAPI } from 'routing-controllers-openapi';
|
|
||||||
import { getConnection } from 'typeorm';
|
|
||||||
|
|
||||||
@JsonController('/status')
|
|
||||||
export class StatusController {
|
|
||||||
|
|
||||||
@Get()
|
|
||||||
@OpenAPI({ description: "Lists all tracks." })
|
|
||||||
get() {
|
|
||||||
let connection;
|
|
||||||
try {
|
|
||||||
connection = getConnection();
|
|
||||||
} catch {
|
|
||||||
throw new Error("sth is wrong, i can feel it....");
|
|
||||||
}
|
|
||||||
return {
|
|
||||||
"controllers": "✔",
|
|
||||||
"database connection": "✔"
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user