mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
9 lines
401 B
TypeScript
9 lines
401 B
TypeScript
import type { PluginAPI } from '@hydrooj/ui-next';
|
|
|
|
export function setup(api: PluginAPI) {
|
|
// (2) Page registration — slot names match the server route names / template stems
|
|
// registered in ../index.ts. Pages are lazy-loaded on demand.
|
|
api.registerPage('example_home', () => import('./pages/example_home'));
|
|
api.registerPage('example_css', () => import('./pages/example_css'));
|
|
}
|