Skip to content

Commit

Permalink
#56 get content of file from request
Browse files Browse the repository at this point in the history
  • Loading branch information
Reindert Vetter committed Sep 22, 2020
1 parent 9859395 commit 3244fb1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/controller/homepage.go
Original file line number Diff line number Diff line change
@@ -1,17 +1,10 @@
package controller

import (
"fmt"
"github.com/lanvard/contract/inter"
"github.com/lanvard/routing/outcome"
)

func Homepage(request inter.Request) inter.Response {
source := request.Source()
err := source.ParseForm()
if err != nil {
panic(err)
}
fmt.Println(source.FormFile("the_key"))
return outcome.Html("ok")
}

0 comments on commit 3244fb1

Please sign in to comment.