Use new routed handler struct in cmd

Also includes changes made by gofmt
This commit is contained in:
Max Brosnahan 2015-11-04 16:48:23 -07:00
parent a65da4944d
commit 71747f2805
1 changed files with 5 additions and 4 deletions

View File

@ -2,14 +2,15 @@ package main
import (
"flag"
"github.com/tus/tusd"
"github.com/tus/tusd/filestore"
"github.com/tus/tusd/limitedstore"
"log"
"net"
"net/http"
"os"
"time"
"github.com/tus/tusd"
"github.com/tus/tusd/filestore"
"github.com/tus/tusd/limitedstore"
)
var httpHost string
@ -59,7 +60,7 @@ func main() {
stdout.Printf("Using %.2fMB as maximum size.\n", float64(maxSize)/1024/1024)
handler, err := tusd.NewHandler(tusd.Config{
handler, err := tusd.NewRoutedHandler(tusd.Config{
MaxSize: maxSize,
BasePath: "files/",
DataStore: store,