Update and rework project structure with new pagebuilder concept. (based on RK Architekten and SFU Politik configs and sources)
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
// @ts-check
|
||||
|
||||
var utils = require("../lib/utils")
|
||||
|
||||
;(function () {
|
||||
utils.clearSSRCache()
|
||||
})()
|
||||
11
api/hooks/content/post_create.js
Normal file
11
api/hooks/content/post_create.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// @ts-check
|
||||
const { generateUrlString } = require("../lib/helper")
|
||||
|
||||
;(function () {
|
||||
/** @type {import("tibi-types").HookResponse} */
|
||||
let hookResponse
|
||||
|
||||
context.data.path = generateUrlString(context.data.path)
|
||||
|
||||
return hookResponse
|
||||
})()
|
||||
@@ -1,7 +0,0 @@
|
||||
// @ts-check
|
||||
|
||||
var utils = require("../lib/utils")
|
||||
|
||||
;(function () {
|
||||
utils.clearSSRCache()
|
||||
})()
|
||||
@@ -1,7 +0,0 @@
|
||||
// @ts-check
|
||||
|
||||
var utils = require("../lib/utils")
|
||||
|
||||
;(function () {
|
||||
utils.clearSSRCache()
|
||||
})()
|
||||
11
api/hooks/content/put_update.js
Normal file
11
api/hooks/content/put_update.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// @ts-check
|
||||
const { generateUrlString } = require("../lib/helper")
|
||||
|
||||
;(function () {
|
||||
/** @type {import("tibi-types").HookResponse} */
|
||||
let hookResponse
|
||||
|
||||
context.data.path = generateUrlString(context.data.path)
|
||||
|
||||
return hookResponse
|
||||
})()
|
||||
Reference in New Issue
Block a user