metamigo-common: build, fmt, lint
This commit is contained in:
parent
2a1ced5383
commit
75fb3f84c4
21 changed files with 95 additions and 156 deletions
|
|
@ -20,7 +20,6 @@ const register = async (
|
|||
request.response.output.headers[header] = id;
|
||||
} else {
|
||||
const id = request.headers[header] || uuid();
|
||||
// @ts-ignore
|
||||
request.response.header(header, id);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,12 +1,13 @@
|
|||
import { Server, RouteOptionsAccess } from "@hapi/hapi";
|
||||
import { Prometheus } from "@promster/hapi";
|
||||
import { Counter } from "prom-client";
|
||||
|
||||
interface StatusOptions {
|
||||
path?: string;
|
||||
auth?: RouteOptionsAccess;
|
||||
}
|
||||
|
||||
const count = (statusCounter: any) => async () => {
|
||||
const count = (statusCounter: Counter) => async () => {
|
||||
statusCounter.inc();
|
||||
return "Incremented metamigo_status_test counter";
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue