refactor: redesign module system
This commit is contained in:
1 parent
7ba2102b96
commit
4c51428587
8 files changed
+29
-20
No files matched your search
@@ -0,0 +1,11 @@
|
||||
## Modules
|
||||
|
||||
A custom user module system. Place a `.ts` file with the following template, it will be installed automatically.
|
||||
|
||||
```ts
|
||||
import { UserModule } from '/~/types'
|
||||
|
||||
export const install: UserModule = ({ app, router, isClient }) => {
|
||||
// do something
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user