jam411 3 лет назад
Родитель
Сommit
c54b6c04fb
1 измененных файлов с 6 добавлено и 6 удалено
  1. 6 6
      packages/app/src/server/routes/apiv3/plugins.ts

+ 6 - 6
packages/app/src/server/routes/apiv3/plugins.ts

@@ -30,7 +30,7 @@ module.exports = (crowi: Crowi): Router => {
 
 
   router.get('/', loginRequiredStrictly, adminRequired, async(req: Request, res: ApiV3Response) => {
   router.get('/', loginRequiredStrictly, adminRequired, async(req: Request, res: ApiV3Response) => {
     if (pluginService == null) {
     if (pluginService == null) {
-      throw new Error('\'pluginService\' is not import.');
+      throw new Error('\'pluginService\' is not set up.');
     }
     }
 
 
     try {
     try {
@@ -44,7 +44,7 @@ module.exports = (crowi: Crowi): Router => {
 
 
   router.get('/:id', loginRequiredStrictly, adminRequired, validator.pluginIdisRequired, async(req: Request, res: ApiV3Response) => {
   router.get('/:id', loginRequiredStrictly, adminRequired, validator.pluginIdisRequired, async(req: Request, res: ApiV3Response) => {
     if (pluginService == null) {
     if (pluginService == null) {
-      throw new Error('\'pluginService\' is not import.');
+      throw new Error('\'pluginService\' is not set up.');
     }
     }
 
 
     const { id } = req.params;
     const { id } = req.params;
@@ -62,7 +62,7 @@ module.exports = (crowi: Crowi): Router => {
 
 
   router.post('/', loginRequiredStrictly, adminRequired, validator.pluginFormValueisRequired, async(req: Request, res: ApiV3Response) => {
   router.post('/', loginRequiredStrictly, adminRequired, validator.pluginFormValueisRequired, async(req: Request, res: ApiV3Response) => {
     if (pluginService == null) {
     if (pluginService == null) {
-      throw new Error('\'pluginService\' is not import.');
+      throw new Error('\'pluginService\' is not set up.');
     }
     }
 
 
     const { pluginInstallerForm: formValue } = req.body;
     const { pluginInstallerForm: formValue } = req.body;
@@ -78,7 +78,7 @@ module.exports = (crowi: Crowi): Router => {
 
 
   router.put('/:id/activate', loginRequiredStrictly, adminRequired, validator.pluginIdisRequired, async(req: Request, res: ApiV3Response) => {
   router.put('/:id/activate', loginRequiredStrictly, adminRequired, validator.pluginIdisRequired, async(req: Request, res: ApiV3Response) => {
     if (pluginService == null) {
     if (pluginService == null) {
-      throw new Error('\'pluginService\' is not import.');
+      throw new Error('\'pluginService\' is not set up.');
     }
     }
 
 
     const { id } = req.params;
     const { id } = req.params;
@@ -96,7 +96,7 @@ module.exports = (crowi: Crowi): Router => {
 
 
   router.put('/:id/deactivate', loginRequiredStrictly, adminRequired, validator.pluginIdisRequired, async(req: Request, res: ApiV3Response) => {
   router.put('/:id/deactivate', loginRequiredStrictly, adminRequired, validator.pluginIdisRequired, async(req: Request, res: ApiV3Response) => {
     if (pluginService == null) {
     if (pluginService == null) {
-      throw new Error('\'pluginService\' is not import.');
+      throw new Error('\'pluginService\' is not set up.');
     }
     }
 
 
     const { id } = req.params;
     const { id } = req.params;
@@ -114,7 +114,7 @@ module.exports = (crowi: Crowi): Router => {
 
 
   router.delete('/:id/remove', loginRequiredStrictly, adminRequired, validator.pluginIdisRequired, async(req: Request, res: ApiV3Response) => {
   router.delete('/:id/remove', loginRequiredStrictly, adminRequired, validator.pluginIdisRequired, async(req: Request, res: ApiV3Response) => {
     if (pluginService == null) {
     if (pluginService == null) {
-      throw new Error('\'pluginService\' is not import.');
+      throw new Error('\'pluginService\' is not set up.');
     }
     }
 
 
     const { id } = req.params;
     const { id } = req.params;