This repository has been archived by the owner on May 5, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
3,517 additions
and
17,779 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
.env | ||
|
||
############################ | ||
# OS X | ||
############################ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"latest": "3.3.4", | ||
"lastUpdateCheck": 1607681407609, | ||
"lastNotification": 1607681528834 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,74 +1,8 @@ | ||
'use strict'; | ||
|
||
/** | ||
* Parcours.js controller | ||
* | ||
* @description: A set of functions called "actions" for managing `Parcours`. | ||
* Read the documentation (https://strapi.io/documentation/3.0.0-beta.x/concepts/controllers.html#core-controllers) | ||
* to customize this controller | ||
*/ | ||
|
||
module.exports = { | ||
|
||
/** | ||
* Retrieve parcours records. | ||
* | ||
* @return {Object|Array} | ||
*/ | ||
|
||
find: async (ctx, next, { populate } = {}) => { | ||
if (ctx.query._q) { | ||
return strapi.services.parcours.search(ctx.query); | ||
} else { | ||
return strapi.services.parcours.fetchAll(ctx.query, populate); | ||
} | ||
}, | ||
|
||
/** | ||
* Retrieve a parcours record. | ||
* | ||
* @return {Object} | ||
*/ | ||
|
||
findOne: async (ctx) => { | ||
return strapi.services.parcours.fetch(ctx.params); | ||
}, | ||
|
||
/** | ||
* Count parcours records. | ||
* | ||
* @return {Number} | ||
*/ | ||
|
||
count: async (ctx, next, { populate } = {}) => { | ||
return strapi.services.parcours.count(ctx.query, populate); | ||
}, | ||
|
||
/** | ||
* Create a/an parcours record. | ||
* | ||
* @return {Object} | ||
*/ | ||
|
||
create: async (ctx) => { | ||
return strapi.services.parcours.add(ctx.request.body); | ||
}, | ||
|
||
/** | ||
* Update a/an parcours record. | ||
* | ||
* @return {Object} | ||
*/ | ||
|
||
update: async (ctx, next) => { | ||
return strapi.services.parcours.edit(ctx.params, ctx.request.body) ; | ||
}, | ||
|
||
/** | ||
* Destroy a/an parcours record. | ||
* | ||
* @return {Object} | ||
*/ | ||
|
||
destroy: async (ctx, next) => { | ||
return strapi.services.parcours.remove(ctx.params); | ||
} | ||
}; | ||
module.exports = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module.exports = ({ env }) => ({ | ||
defaultConnection: 'default', | ||
connections: { | ||
default: { | ||
connector: 'bookshelf', | ||
settings: { | ||
client: 'mysql', | ||
host: env('DATABASE_HOST'), | ||
port: env.int('DATABASE_PORT'), | ||
database: env('DATABASE_NAME'), | ||
username: env('DATABASE_USERNAME'), | ||
password: env('DATABASE_PASSWORD'), | ||
}, | ||
options: {}, | ||
}, | ||
}, | ||
}); |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.