File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff line change 11/*
2- * ACS ConfigDB
3- * Express routing
4- * Copyright 2024 University of Sheffield AMRC
2+ * Copyright (c) University of Sheffield AMRC 2025.
53 */
64
75import url from "url" ;
@@ -28,8 +26,6 @@ export function routes (opts) {
2826 /* No fancy query-string parsing */
2927 app . set ( "query parser" , "simple" ) ;
3028
31- app . use ( express . json ( { type : "application/merge-patch+json" } ) ) ;
32-
3329 /* Serve the editor */
3430 const editor = url . fileURLToPath ( new URL ( "../editor" , import . meta. url ) ) ;
3531 fplus . debug . log ( "editor" , `Serving editor out of ${ editor } .` ) ;
Original file line number Diff line number Diff line change 11/*
2- * Factory+ Service HTTP API
3- * API framework class
4- * Copyright 2024 University of Sheffield
2+ * Copyright (c) University of Sheffield AMRC 2025.
53 */
64
75import http from "http" ;
@@ -42,6 +40,7 @@ export class WebAPI {
4240 app . use ( express . raw ( { type : "*/*" , limit : this . body_limit } ) ) ;
4341 } else {
4442 app . use ( express . json ( { limit : this . body_limit , strict : false } ) ) ;
43+ app . use ( express . json ( { limit : this . body_limit , strict : false , type : "application/merge-patch+json" } ) ) ;
4544 }
4645
4746 /* Logging */
You can’t perform that action at this time.
0 commit comments