mirror of
https://github.com/kyantech/Palmr.git
synced 2025-11-05 14:35:30 +00:00
Compare commits
2 Commits
main
...
copilot/fi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f950b6f60b | ||
|
|
c19dc6d95e |
@@ -6,12 +6,12 @@ import { FilesystemController } from "./controller";
|
|||||||
export async function filesystemRoutes(app: FastifyInstance) {
|
export async function filesystemRoutes(app: FastifyInstance) {
|
||||||
const filesystemController = new FilesystemController();
|
const filesystemController = new FilesystemController();
|
||||||
|
|
||||||
app.addContentTypeParser("*", async (request: FastifyRequest, payload: any) => {
|
app.addContentTypeParser("*", (request: FastifyRequest, payload: any, done: any) => {
|
||||||
return payload;
|
done(null, null);
|
||||||
});
|
});
|
||||||
|
|
||||||
app.addContentTypeParser("application/json", async (request: FastifyRequest, payload: any) => {
|
app.addContentTypeParser("application/json", (request: FastifyRequest, payload: any, done: any) => {
|
||||||
return payload;
|
done(null, null);
|
||||||
});
|
});
|
||||||
|
|
||||||
app.put(
|
app.put(
|
||||||
|
|||||||
Reference in New Issue
Block a user