tibiadmin-svelte-starter/api/hooks/content/put_update.js

12 lines
251 B
JavaScript

// @ts-check
const { generateUrlString } = require("../lib/helper")
;(function () {
/** @type {import("tibi-types").HookResponse} */
let hookResponse
context.data.path = generateUrlString(context.data.path)
return hookResponse
})()