@cocreate/file-server 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/CoCreate.config.js +1 -1
- package/docs/index.html +1 -1
- package/package.json +1 -1
- package/src/index.js +3 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# [1.3.0](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.2.1...v1.3.0) (2023-05-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* apikey renamed to key ([3cd1648](https://github.com/CoCreate-app/CoCreate-file-server/commit/3cd16488b21b0110ec242b1c02dffe02328153c9))
|
|
7
|
+
* replace key ([fa78c05](https://github.com/CoCreate-app/CoCreate-file-server/commit/fa78c0557c380e149336b4eefbe8e797b86b3409))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* redirect to /superadmin ([9094337](https://github.com/CoCreate-app/CoCreate-file-server/commit/909433742d08dadb1bc9f61b45850dd6eec8e1c2))
|
|
13
|
+
|
|
1
14
|
## [1.2.1](https://github.com/CoCreate-app/CoCreate-file-server/compare/v1.2.0...v1.2.1) (2023-05-10)
|
|
2
15
|
|
|
3
16
|
|
package/CoCreate.config.js
CHANGED
package/docs/index.html
CHANGED
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -58,14 +58,10 @@ class CoCreateFileSystem {
|
|
|
58
58
|
if (!org || !org.document || !org.document[0]) {
|
|
59
59
|
hostNotFound = hostNotFound || 'Organization cannot be found using the host: ' + hostname + ' in platformDB: ' + process.env.organization_id
|
|
60
60
|
organization = {_id: process.env.organization_id, key: process.env.key}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
// return res.send(signup);
|
|
64
|
-
// else
|
|
65
|
-
// return res.send(hostNotFound);
|
|
66
|
-
|
|
61
|
+
if (!req.url.startsWith('/superadmin'))
|
|
62
|
+
return res.redirect(301, 'https://' + hostname + '/superadmin/signup.html')
|
|
67
63
|
} else {
|
|
68
|
-
organization = {_id: org.document[0]._id, key: org.document[0].
|
|
64
|
+
organization = {_id: org.document[0]._id, key: org.document[0].key}
|
|
69
65
|
organizations.set(hostname, organization)
|
|
70
66
|
}
|
|
71
67
|
}
|