chore: update module

This commit is contained in:
JaguarJack
2023-01-19 15:55:38 +08:00
parent 527aca2250
commit f3592265cb
8 changed files with 21 additions and 13 deletions

View File

@@ -22,9 +22,9 @@ class DevelopServiceProvider extends CatchModuleServiceProvider
*
* @return string|array
*/
public function routePath(): string|array
public function moduleName(): string|array
{
// TODO: Implement path() method.
return CatchAdmin::getModuleRoutePath('develop');
return 'develop';
}
}

View File

@@ -10,11 +10,11 @@ class {Module}ServiceProvider extends CatchModuleServiceProvider
/**
* route path
*
* @return string|array
* @return string
*/
public function routePath(): string|array
public function moduleName(): string
{
// TODO: Implement path() method.
return CatchAdmin::getModuleRoutePath('{module}');
return '{module}';
}
}
}