node_modules ignore

This commit is contained in:
2025-05-08 23:43:47 +02:00
parent e19d52f172
commit 4574544c9f
65041 changed files with 10593536 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
module.exports = {
routes: [
{
method: 'GET',
path: '/{{ pluralize id }}',
handler: '{{ id }}.find',
config: {
policies: [],
middlewares: [],
},
},
{
method: 'GET',
path: '/{{ pluralize id }}/:id',
handler: '{{ id }}.findOne',
config: {
policies: [],
middlewares: [],
},
},
{
method: 'POST',
path: '/{{ pluralize id }}',
handler: '{{ id }}.create',
config: {
policies: [],
middlewares: [],
},
},
{
method: 'PUT',
path: '/{{ pluralize id }}/:id',
handler: '{{ id }}.update',
config: {
policies: [],
middlewares: [],
},
},
{
method: 'DELETE',
path: '/{{ pluralize id }}/:id',
handler: '{{ id }}.delete',
config: {
policies: [],
middlewares: [],
},
},
],
};

View File

@@ -0,0 +1,14 @@
{
"kind": "{{kind}}",
"collectionName": "{{ collectionName }}",
"info": {
"singularName": "{{ singularName }}",
"pluralName": "{{ pluralName }}",
"displayName": "{{ displayName }}"
},
"options": {
"comment": ""
},
"attributes": {}
}

View File

@@ -0,0 +1,15 @@
'use strict';
/**
* A set of functions called "actions" for `{{ id }}`
*/
module.exports = {
// exampleAction: async (ctx, next) => {
// try {
// ctx.body = 'ok';
// } catch (err) {
// ctx.body = err;
// }
// }
};

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* {{ id }} controller
*/
const { createCoreController } = require('@strapi/strapi').factories;
module.exports = createCoreController('{{ uid }}');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* {{ id }} router
*/
const { createCoreRouter } = require('@strapi/strapi').factories;
module.exports = createCoreRouter('{{ uid }}');

View File

@@ -0,0 +1,9 @@
'use strict';
/**
* {{ id }} service
*/
const { createCoreService } = require('@strapi/strapi').factories;
module.exports = createCoreService('{{ uid }}');

View File

@@ -0,0 +1,14 @@
'use strict';
/**
* `{{ name }}` middleware
*/
module.exports = (config, { strapi }) => {
// Add your own logic here.
return async (ctx, next) => {
strapi.log.info('In {{ name }} middleware.');
await next();
};
};

View File

@@ -0,0 +1,15 @@
'use strict';
/**
* Migration `{{ name }}`
*/
module.exports = {
/**
*
* @param {import('knex').Knex} knex
*/
async up(knex) {
},
};

View File

@@ -0,0 +1,18 @@
'use strict';
/**
* `{{ id }}` policy
*/
module.exports = (policyContext, config, { strapi }) => {
// Add your own logic here.
strapi.log.info('In {{ id }} policy.');
const canDoSomething = true;
if (canDoSomething) {
return true;
}
return false;
};

View File

@@ -0,0 +1,7 @@
'use strict';
/**
* {{ id }} service
*/
module.exports = () => ({});

View File

@@ -0,0 +1,13 @@
module.exports = {
routes: [
// {
// method: 'GET',
// path: '/{{ id }}',
// handler: '{{ id }}.exampleAction',
// config: {
// policies: [],
// middlewares: [],
// },
// },
],
};

View File

@@ -0,0 +1,33 @@
'use strict';
module.exports = {
routes: [
{
method: 'GET',
path: '/{{ id }}',
handler: '{{ id }}.find',
config: {
policies: [],
middlewares: [],
},
},
{
method: 'PUT',
path: '/{{ id }}',
handler: '{{ id }}.update',
config: {
policies: [],
middlewares: [],
},
},
{
method: 'DELETE',
path: '/{{ id }}',
handler: '{{ id }}.delete',
config: {
policies: [],
middlewares: [],
},
},
],
};

View File

@@ -0,0 +1,49 @@
export default {
routes: [
{
method: 'GET',
path: '/{{ pluralize id }}',
handler: '{{ id }}.find',
config: {
policies: [],
middlewares: [],
},
},
{
method: 'GET',
path: '/{{ pluralize id }}/:id',
handler: '{{ id }}.findOne',
config: {
policies: [],
middlewares: [],
},
},
{
method: 'POST',
path: '/{{ pluralize id }}',
handler: '{{ id }}.create',
config: {
policies: [],
middlewares: [],
},
},
{
method: 'PUT',
path: '/{{ pluralize id }}/:id',
handler: '{{ id }}.update',
config: {
policies: [],
middlewares: [],
},
},
{
method: 'DELETE',
path: '/{{ pluralize id }}/:id',
handler: '{{ id }}.delete',
config: {
policies: [],
middlewares: [],
},
},
],
};

View File

@@ -0,0 +1,14 @@
{
"kind": "{{kind}}",
"collectionName": "{{ collectionName }}",
"info": {
"singularName": "{{ singularName }}",
"pluralName": "{{ pluralName }}",
"displayName": "{{ displayName }}"
},
"options": {
"comment": ""
},
"attributes": {}
}

View File

@@ -0,0 +1,13 @@
/**
* A set of functions called "actions" for `{{ id }}`
*/
export default {
// exampleAction: async (ctx, next) => {
// try {
// ctx.body = 'ok';
// } catch (err) {
// ctx.body = err;
// }
// }
};

View File

@@ -0,0 +1,7 @@
/**
* {{ id }} controller
*/
import { factories } from '@strapi/strapi'
export default factories.createCoreController('{{ uid }}');

View File

@@ -0,0 +1,7 @@
/**
* {{ id }} router
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreRouter('{{ uid }}');

View File

@@ -0,0 +1,7 @@
/**
* {{ id }} service
*/
import { factories } from '@strapi/strapi';
export default factories.createCoreService('{{ uid }}');

View File

@@ -0,0 +1,14 @@
/**
* `{{ name }}` middleware
*/
import type { Core } from '@strapi/strapi';
export default (config, { strapi }: { strapi: Core.Strapi }) => {
// Add your own logic here.
return async (ctx, next) => {
strapi.log.info('In {{ name }} middleware.');
await next();
};
};

View File

@@ -0,0 +1,11 @@
import type { Knex } from 'knex';
/**
* Migration `{{ name }}`
*/
export default {
up: async (knex: Knex) => {
},
};

View File

@@ -0,0 +1,16 @@
/**
* {{ id }} policy
*/
export default (policyContext, config, { strapi }) => {
// Add your own logic here.
strapi.log.info('In {{ id }} policy.');
const canDoSomething = true;
if (canDoSomething) {
return true;
}
return false;
};

View File

@@ -0,0 +1,5 @@
/**
* {{ id }} service
*/
export default () => ({});

View File

@@ -0,0 +1,13 @@
export default {
routes: [
// {
// method: 'GET',
// path: '/{{ id }}',
// handler: '{{ id }}.exampleAction',
// config: {
// policies: [],
// middlewares: [],
// },
// },
],
};

View File

@@ -0,0 +1,31 @@
export default {
routes: [
{
method: 'GET',
path: '/{{ id }}',
handler: '{{ id }}.find',
config: {
policies: [],
middlewares: [],
},
},
{
method: 'PUT',
path: '/{{ id }}',
handler: '{{ id }}.update',
config: {
policies: [],
middlewares: [],
},
},
{
method: 'DELETE',
path: '/{{ id }}',
handler: '{{ id }}.delete',
config: {
policies: [],
middlewares: [],
},
},
],
};