diff --git a/backend/src/main/kotlin/no/nav/helse/sprik/plugins/Routing.kt b/backend/src/main/kotlin/no/nav/helse/sprik/plugins/Routing.kt index 408fa8f..073dad3 100644 --- a/backend/src/main/kotlin/no/nav/helse/sprik/plugins/Routing.kt +++ b/backend/src/main/kotlin/no/nav/helse/sprik/plugins/Routing.kt @@ -28,6 +28,7 @@ fun configureRouting(): ApplicationEngine = embeddedServer(CIO, applicationEngin allowMethod(HttpMethod.Get) allowMethod(HttpMethod.Post) allowMethod(HttpMethod.Put) + allowMethod(HttpMethod.Delete) allowNonSimpleContentTypes = true } install(ContentNegotiation) { diff --git a/frontend/src/components/RedigeringsVerktoy.tsx b/frontend/src/components/RedigeringsVerktoy.tsx index faec604..2d42b84 100644 --- a/frontend/src/components/RedigeringsVerktoy.tsx +++ b/frontend/src/components/RedigeringsVerktoy.tsx @@ -114,7 +114,7 @@ export default RedigeringsVerktoy; const SlettFeilKnapp = (props: {id : number}) => { const SlettFeil = () => { - axios.delete(`/api/slettfeil/${props.id}`) + axios.delete(`/api/slettfeilmelding/${props.id}`) } return(