@wecode-team/cms-supabase-api 0.1.45 → 0.1.46
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/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -7349,8 +7349,8 @@ function createOssUploadRoute(app) {
|
|
|
7349
7349
|
return app;
|
|
7350
7350
|
}
|
|
7351
7351
|
function createConfigRoute(app) {
|
|
7352
|
-
app.get("/configs",
|
|
7353
|
-
app.put("/configs/:namespace",
|
|
7352
|
+
app.get("/configs", requireAdminRole, getConfig);
|
|
7353
|
+
app.put("/configs/:namespace", requireAdminRole, function (c) {
|
|
7354
7354
|
return updateConfig(c);
|
|
7355
7355
|
});
|
|
7356
7356
|
return app;
|