@sonicjs-cms/core 2.0.0-alpha.4 → 2.0.0-alpha.5
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/dist/{chunk-5XKH6PBR.js → chunk-5RDID2QZ.js} +5 -5
- package/dist/{chunk-5XKH6PBR.js.map → chunk-5RDID2QZ.js.map} +1 -1
- package/dist/{chunk-B5DU2UAN.cjs → chunk-KWFUNPSQ.cjs} +5 -5
- package/dist/{chunk-B5DU2UAN.cjs.map → chunk-KWFUNPSQ.cjs.map} +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.js +2 -2
- package/dist/routes.cjs +9 -9
- package/dist/routes.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKWFUNPSQ_cjs = require('./chunk-KWFUNPSQ.cjs');
|
|
4
4
|
require('./chunk-AGOE25LF.cjs');
|
|
5
5
|
var chunk24PWAFUT_cjs = require('./chunk-24PWAFUT.cjs');
|
|
6
6
|
var chunkWJ7QYVR2_cjs = require('./chunk-WJ7QYVR2.cjs');
|
|
@@ -39,12 +39,12 @@ function createSonicJSApp(config = {}) {
|
|
|
39
39
|
app.use("*", middleware);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
app.route("/api",
|
|
43
|
-
app.route("/api/media",
|
|
44
|
-
app.route("/api/system",
|
|
45
|
-
app.route("/admin/api",
|
|
46
|
-
app.route("/admin/content",
|
|
47
|
-
app.route("/auth",
|
|
42
|
+
app.route("/api", chunkKWFUNPSQ_cjs.api_default);
|
|
43
|
+
app.route("/api/media", chunkKWFUNPSQ_cjs.api_media_default);
|
|
44
|
+
app.route("/api/system", chunkKWFUNPSQ_cjs.api_system_default);
|
|
45
|
+
app.route("/admin/api", chunkKWFUNPSQ_cjs.admin_api_default);
|
|
46
|
+
app.route("/admin/content", chunkKWFUNPSQ_cjs.admin_content_default);
|
|
47
|
+
app.route("/auth", chunkKWFUNPSQ_cjs.auth_default);
|
|
48
48
|
if (config.routes) {
|
|
49
49
|
for (const route of config.routes) {
|
|
50
50
|
app.route(route.path, route.handler);
|
|
@@ -82,7 +82,7 @@ var VERSION = "2.0.0-alpha.3";
|
|
|
82
82
|
|
|
83
83
|
Object.defineProperty(exports, "ROUTES_INFO", {
|
|
84
84
|
enumerable: true,
|
|
85
|
-
get: function () { return
|
|
85
|
+
get: function () { return chunkKWFUNPSQ_cjs.ROUTES_INFO; }
|
|
86
86
|
});
|
|
87
87
|
Object.defineProperty(exports, "AuthManager", {
|
|
88
88
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { api_default, api_media_default, api_system_default, admin_api_default, admin_content_default, auth_default } from './chunk-
|
|
2
|
-
export { ROUTES_INFO } from './chunk-
|
|
1
|
+
import { api_default, api_media_default, api_system_default, admin_api_default, admin_content_default, auth_default } from './chunk-5RDID2QZ.js';
|
|
2
|
+
export { ROUTES_INFO } from './chunk-5RDID2QZ.js';
|
|
3
3
|
import './chunk-3MNMOLSA.js';
|
|
4
4
|
export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, detailedLoggingMiddleware, getActivePlugins, isPluginActive, logActivity, loggingMiddleware, optionalAuth, performanceLoggingMiddleware, requireActivePlugin, requireActivePlugins, requireAnyPermission, requireAuth, requirePermission, requireRole, securityHeaders, securityLoggingMiddleware } from './chunk-PTQZ5FEI.js';
|
|
5
5
|
import { schema_exports } from './chunk-CXZDAR6S.js';
|
package/dist/routes.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkKWFUNPSQ_cjs = require('./chunk-KWFUNPSQ.cjs');
|
|
4
4
|
require('./chunk-AGOE25LF.cjs');
|
|
5
5
|
require('./chunk-24PWAFUT.cjs');
|
|
6
6
|
require('./chunk-WJ7QYVR2.cjs');
|
|
@@ -11,35 +11,35 @@ require('./chunk-EMMSS5I5.cjs');
|
|
|
11
11
|
|
|
12
12
|
Object.defineProperty(exports, "ROUTES_INFO", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkKWFUNPSQ_cjs.ROUTES_INFO; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "adminApiRoutes", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkKWFUNPSQ_cjs.admin_api_default; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "adminContentRoutes", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkKWFUNPSQ_cjs.admin_content_default; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "apiContentCrudRoutes", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkKWFUNPSQ_cjs.api_content_crud_default; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "apiMediaRoutes", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkKWFUNPSQ_cjs.api_media_default; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "apiRoutes", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkKWFUNPSQ_cjs.api_default; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "apiSystemRoutes", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkKWFUNPSQ_cjs.api_system_default; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "authRoutes", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkKWFUNPSQ_cjs.auth_default; }
|
|
43
43
|
});
|
|
44
44
|
//# sourceMappingURL=routes.cjs.map
|
|
45
45
|
//# sourceMappingURL=routes.cjs.map
|
package/dist/routes.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ROUTES_INFO, admin_api_default as adminApiRoutes, admin_content_default as adminContentRoutes, api_content_crud_default as apiContentCrudRoutes, api_media_default as apiMediaRoutes, api_default as apiRoutes, api_system_default as apiSystemRoutes, auth_default as authRoutes } from './chunk-
|
|
1
|
+
export { ROUTES_INFO, admin_api_default as adminApiRoutes, admin_content_default as adminContentRoutes, api_content_crud_default as apiContentCrudRoutes, api_media_default as apiMediaRoutes, api_default as apiRoutes, api_system_default as apiSystemRoutes, auth_default as authRoutes } from './chunk-5RDID2QZ.js';
|
|
2
2
|
import './chunk-3MNMOLSA.js';
|
|
3
3
|
import './chunk-PTQZ5FEI.js';
|
|
4
4
|
import './chunk-CXZDAR6S.js';
|
package/package.json
CHANGED