Added actor profile revisions.

This commit is contained in:
2024-10-22 03:12:42 +02:00
parent b5bef49f73
commit 3967745fb3
31 changed files with 1907 additions and 67 deletions

View File

@@ -0,0 +1,19 @@
import { match } from 'path-to-regexp';
const path = '/admin/:section/:domain(actors)';
const urlMatch = match(path, { decode: decodeURIComponent });
export default (pageContext) => {
const matched = urlMatch(pageContext.urlPathname);
if (matched) {
return {
routeParams: {
section: matched.params.section,
domain: matched.params.domain,
},
};
}
return false;
};