mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 08:52:26 +00:00
Merge branch 'auth-provider/update-user-models' of github.com:strapi/strapi into auth-provider/configs
This commit is contained in:
commit
fc22f13cfc
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"provider": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
}
|
@ -158,8 +158,9 @@ const mountMiddlewares = function (files, cwd) {
|
|||||||
return (resolve, reject) =>
|
return (resolve, reject) =>
|
||||||
parallel(
|
parallel(
|
||||||
files.map(p => cb => {
|
files.map(p => cb => {
|
||||||
const name = p.replace(/^.\/node_modules\/strapi-middleware-/, './')
|
const folders = p.replace(/^.\/node_modules\/strapi-middleware-/, './')
|
||||||
.split('/')[1];
|
.split('/');
|
||||||
|
const name = folders[folders.length - 2];
|
||||||
|
|
||||||
this.middleware[name] = this.middleware[name] || {
|
this.middleware[name] = this.middleware[name] || {
|
||||||
loaded: false
|
loaded: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user