| @@ -0,0 +1,52 @@ | |||||
| { | |||||
| "routes": [ | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/subscriptions", | |||||
| "handler": "subscription.find", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/subscriptions/count", | |||||
| "handler": "subscription.count", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "GET", | |||||
| "path": "/subscriptions/:id", | |||||
| "handler": "subscription.findOne", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "POST", | |||||
| "path": "/subscriptions", | |||||
| "handler": "subscription.create", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "PUT", | |||||
| "path": "/subscriptions/:id", | |||||
| "handler": "subscription.update", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| }, | |||||
| { | |||||
| "method": "DELETE", | |||||
| "path": "/subscriptions/:id", | |||||
| "handler": "subscription.delete", | |||||
| "config": { | |||||
| "policies": [] | |||||
| } | |||||
| } | |||||
| ] | |||||
| } | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-controllers) | |||||
| * to customize this controller | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#lifecycle-hooks) | |||||
| * to customize this model | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -0,0 +1,20 @@ | |||||
| { | |||||
| "kind": "collectionType", | |||||
| "collectionName": "subscriptions", | |||||
| "info": { | |||||
| "name": "Subscription" | |||||
| }, | |||||
| "options": { | |||||
| "increments": true, | |||||
| "timestamps": true, | |||||
| "draftAndPublish": true | |||||
| }, | |||||
| "attributes": { | |||||
| "email": { | |||||
| "type": "email" | |||||
| }, | |||||
| "is_subscribed": { | |||||
| "type": "boolean" | |||||
| } | |||||
| } | |||||
| } | |||||
| @@ -0,0 +1,8 @@ | |||||
| 'use strict'; | |||||
| /** | |||||
| * Read the documentation (https://strapi.io/documentation/developer-docs/latest/development/backend-customization.html#core-services) | |||||
| * to customize this service | |||||
| */ | |||||
| module.exports = {}; | |||||
| @@ -3,10 +3,6 @@ module.exports = ({ env }) => ({ | |||||
| connections: { | connections: { | ||||
| default: { | default: { | ||||
| connector: "bookshelf", | connector: "bookshelf", | ||||
| // settings: { | |||||
| // client: 'sqlite', | |||||
| // filename: env('DATABASE_FILENAME', '.tmp/data.db'), | |||||
| // }, | |||||
| settings: { | settings: { | ||||
| client: "mysql", | client: "mysql", | ||||
| host: env("DATABASE_HOST"), | host: env("DATABASE_HOST"), | ||||
| @@ -14,17 +14,17 @@ | |||||
| "knex": "^0.21.1", | "knex": "^0.21.1", | ||||
| "mysql": "^2.18.1", | "mysql": "^2.18.1", | ||||
| "sqlite3": "5.0.0", | "sqlite3": "5.0.0", | ||||
| "strapi": "3.4.6", | |||||
| "strapi-admin": "3.4.6", | |||||
| "strapi-connector-bookshelf": "3.4.6", | |||||
| "strapi-plugin-content-manager": "3.4.6", | |||||
| "strapi-plugin-content-type-builder": "3.4.6", | |||||
| "strapi-plugin-email": "3.4.6", | |||||
| "strapi-plugin-graphql": "3.4.6", | |||||
| "strapi-plugin-upload": "3.4.6", | |||||
| "strapi-plugin-users-permissions": "3.4.6", | |||||
| "strapi": "3.6.8", | |||||
| "strapi-admin": "3.6.8", | |||||
| "strapi-connector-bookshelf": "3.6.8", | |||||
| "strapi-plugin-content-manager": "3.6.8", | |||||
| "strapi-plugin-content-type-builder": "3.6.8", | |||||
| "strapi-plugin-email": "3.6.8", | |||||
| "strapi-plugin-graphql": "3.6.8", | |||||
| "strapi-plugin-upload": "3.6.8", | |||||
| "strapi-plugin-users-permissions": "3.6.8", | |||||
| "strapi-provider-email-nodemailer": "^3.6.3", | "strapi-provider-email-nodemailer": "^3.6.3", | ||||
| "strapi-utils": "3.4.6" | |||||
| "strapi-utils": "3.6.8" | |||||
| }, | }, | ||||
| "author": { | "author": { | ||||
| "name": "A Strapi developer" | "name": "A Strapi developer" | ||||