Add missing type annotations
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
f69e40ae9e
commit
c2b7e8c53e
@ -8,7 +8,7 @@ import db, { IPackage } from "../db.ts";
|
|||||||
import { v4 } from "https://deno.land/std/uuid/mod.ts";
|
import { v4 } from "https://deno.land/std/uuid/mod.ts";
|
||||||
|
|
||||||
export default function api(g: ABC.Group) {
|
export default function api(g: ABC.Group) {
|
||||||
const cacheControl = (next) => (ctx) => {
|
const cacheControl = (next: ABC.HandlerFunc) => (ctx: ABC.Context) => {
|
||||||
ctx.response.headers.set("cache-control", "private");
|
ctx.response.headers.set("cache-control", "private");
|
||||||
next(ctx);
|
next(ctx);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user