HTI Laravel Route z pliku JavaScript

  <script type="text/javascript">
	 	var deletePostUri = "{{ route('delete_post',$post_id)}}";
	</script>
MajorMFR