ruta HTI Laravel desde el archivo JavaScript
<script type="text/javascript">
var deletePostUri = "{{ route('delete_post',$post_id)}}";
</script>
MajorMFR
<script type="text/javascript">
var deletePostUri = "{{ route('delete_post',$post_id)}}";
</script>