Skip to content

Commit

Permalink
add middleware to accept formdata (#155)
Browse files Browse the repository at this point in the history
add middleware to accept formdata
  • Loading branch information
shamilovtim authored Aug 7, 2024
1 parent 4c9d44a commit e0adec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ export class HttpApi {
#setupMiddleware(): void {
this.#api.use(cors({ exposedHeaders: 'dwn-response' }));
this.#api.use(express.json());

this.#api.use(express.urlencoded({ extended: true })); // formdata middleware
this.#api.use(
responseTime((req: Request, res: Response, time) => {
const url = req.url === '/' ? '/jsonrpc' : req.url;
Expand Down

0 comments on commit e0adec7

Please sign in to comment.