pinokiod 2.0.1 → 2.0.2
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/package.json +1 -1
- package/server/index.js +1 -1
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -2232,7 +2232,7 @@ class Server {
|
|
|
2232
2232
|
})
|
|
2233
2233
|
})
|
|
2234
2234
|
this.app.get("/pre/api/:name", async (req, res) => {
|
|
2235
|
-
let p = path.resolve(this.kernel.homedir, req.params.name, "pinokio.js")
|
|
2235
|
+
let p = path.resolve(this.kernel.homedir, "api", req.params.name, "pinokio.js")
|
|
2236
2236
|
let config = (await this.kernel.loader.load(p)).resolved
|
|
2237
2237
|
if (config && config.pre) {
|
|
2238
2238
|
config.pre.forEach((item) => {
|