mirror of
https://codeberg.org/vlw/gcf-sheets-api.git
synced 2025-09-13 20:03:41 +02:00
Compare commits
2 commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
4825c3c9a1 | ||
![]() |
3829b395cb |
1 changed files with 3 additions and 0 deletions
|
@ -64,6 +64,9 @@ func getSheetData(sheet *RawSheetData) string {
|
|||
|
||||
// Create JSON response from sheet data
|
||||
func httpResponse(w http.ResponseWriter, r *http.Request) {
|
||||
w.Header().Set("Access-Control-Allow-Origin", "*");
|
||||
w.Header().Set("Content-Type", "application/json");
|
||||
|
||||
fmt.Fprint(w, getSheetData(sheetDataToStruct()))
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue