🐛 Fikset routing bug, Delete was not allowed, og feil endepunkt i frontend
This commit is contained in:
		
							parent
							
								
									2d9397b270
								
							
						
					
					
						commit
						42065587c0
					
				
					 2 changed files with 2 additions and 1 deletions
				
			
		|  | @ -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) { | ||||
|  |  | |||
|  | @ -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( | ||||
|  |  | |||
		Reference in a new issue
	
	 Markus Johansen
						Markus Johansen