Skip to content

Commit

Permalink
Fix url
Browse files Browse the repository at this point in the history
  • Loading branch information
Jmainguy committed Apr 16, 2018
1 parent 02fbca5 commit 576d009
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM centos:latest
ADD Sohre.repo /etc/yum.repos.d/
RUN yum install -y patient_csv_to_xml-0.1-1.el7.centos && \
RUN yum install -y patient_csv_to_xml-0.1-2.el7.centos && \
yum clean all
RUN chgrp -R 0 /opt/patient_csv_to_xml \
&& chmod -R g+rwX /opt/patient_csv_to_xml
Expand Down
5 changes: 0 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,13 @@ package main

import (
"encoding/csv"
"io"
"net/http"
"mime/multipart"
"bytes"
"fmt"
"encoding/xml"
)

func hello(w http.ResponseWriter, r *http.Request) {
io.WriteString(w, "Hello world!")
}

func convertCsvToXml(f multipart.File) (buffer *bytes.Buffer){
// Root of our xml doc
v := &Import{}
Expand Down
5 changes: 4 additions & 1 deletion patient_csv_to_xml.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%define debug_package %{nil}
Name: patient_csv_to_xml
Version: 0.1
Release: 1%{?dist}
Release: 2%{?dist}
Summary: A golang http server to convert generations csv to ez claim xml

License: GPLv2
Expand Down Expand Up @@ -38,6 +38,9 @@ exit 0
chown -R patient_csv_to_xml:patient_csv_to_xml /opt/patient_csv_to_xml

%changelog
* Mon Apr 16 2018 Jonathan Mainguy <jon@soh.re> - 0.1-2
- Fixed url

* Mon Apr 16 2018 Jonathan Mainguy <jon@soh.re> - 0.1-1
- Initial release

2 changes: 1 addition & 1 deletion upload.gtpl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<body>
<h1>Upload a CSV file, exported from generations</h1>
<h2>You will get a XML file back, import that into EZ Claim<h2>
<form enctype="multipart/form-data" action="http://localhost:8000/upload" method="post">
<form enctype="multipart/form-data" action="/upload" method="post">
<input type="file" name="uploadfile" />
<input type="hidden" name="token" value="{{.}}"/>
<input type="submit" value="upload" />
Expand Down

0 comments on commit 576d009

Please sign in to comment.