mirror of
https://github.com/strapi/strapi.git
synced 2025-11-02 02:44:55 +00:00
Merge pull request #37 from wistityhq/fix/grant
Fix grant config object path
This commit is contained in:
commit
6cf460b5d8
@ -28,13 +28,13 @@ module.exports = function (strapi) {
|
||||
*/
|
||||
|
||||
initialize: function (cb) {
|
||||
_.defaultsDeep(strapi.config.grant, {
|
||||
_.defaultsDeep(strapi.api.user.config.grant, {
|
||||
server: {
|
||||
protocol: strapi.config.ssl ? 'https' : 'http',
|
||||
host: strapi.config.host + ':' + strapi.config.port
|
||||
}
|
||||
});
|
||||
const grant = new Grant(strapi.config.grant);
|
||||
const grant = new Grant(strapi.api.user.config.grant);
|
||||
|
||||
strapi.app.use(strapi.middlewares.mount(grant));
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user