further benchmarking stuff
This commit is contained in:
14
example-app/server/api/pow/strategy.get.ts
Normal file
14
example-app/server/api/pow/strategy.get.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { defineEventHandler } from "h3";
|
||||
import { ChallengeAlgorithm } from "@impost/lib";
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
if (config.algorithm === ChallengeAlgorithm.kCTF) {
|
||||
return {
|
||||
strategy: undefined,
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
strategy: config.strategy,
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user