MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / apply

Function apply

packages/hydrooj/src/handler/import.ts:40–43  ·  view source on GitHub ↗
(ctx: Context)

Source from the content-addressed store, hash-verified

38}
39
40export async function apply(ctx: Context) {
41 ctx.Route('problem_import_hydro', '/problem/import/hydro', ProblemImportHydroHandler, PERM.PERM_CREATE_PROBLEM);
42 ctx.injectUI('ProblemAdd', 'problem_import_hydro', { icon: 'copy', text: 'Import From Hydro' });
43}

Callers

nothing calls this directly

Calls 1

RouteMethod · 0.80

Tested by

no test coverage detected