@objectstack/runtime 1.0.9 → 1.0.11
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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +17 -0
- package/dist/index.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/src/http-dispatcher.ts +3 -3
package/dist/index.js
CHANGED
|
@@ -1021,7 +1021,7 @@ var HttpDispatcher = class {
|
|
|
1021
1021
|
environment: getEnv("NODE_ENV", "development"),
|
|
1022
1022
|
routes: {
|
|
1023
1023
|
data: `${prefix}/data`,
|
|
1024
|
-
metadata: `${prefix}/
|
|
1024
|
+
metadata: `${prefix}/meta`,
|
|
1025
1025
|
auth: `${prefix}/auth`,
|
|
1026
1026
|
graphql: hasGraphQL ? `${prefix}/graphql` : void 0,
|
|
1027
1027
|
storage: hasFiles ? `${prefix}/storage` : void 0,
|
|
@@ -1351,8 +1351,8 @@ var HttpDispatcher = class {
|
|
|
1351
1351
|
if (cleanPath.startsWith("/auth")) {
|
|
1352
1352
|
return this.handleAuth(cleanPath.substring(5), method, body, context);
|
|
1353
1353
|
}
|
|
1354
|
-
if (cleanPath.startsWith("/
|
|
1355
|
-
return this.handleMetadata(cleanPath.substring(
|
|
1354
|
+
if (cleanPath.startsWith("/meta")) {
|
|
1355
|
+
return this.handleMetadata(cleanPath.substring(5), context);
|
|
1356
1356
|
}
|
|
1357
1357
|
if (cleanPath.startsWith("/data")) {
|
|
1358
1358
|
return this.handleData(cleanPath.substring(5), method, body, query, context);
|