Rute HTI Laravel dari file JavaScript

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