Merge pull request #10 from Trashed/master

Fixed the example project.
This commit is contained in:
Adi 2017-10-30 15:11:31 +05:30 committed by GitHub
commit 4c35a4f8a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

5
.gitignore vendored
View file

@ -1,2 +1,5 @@
storage.db
todo.exe
todo.exe
# IntelliJ files
.idea/*

View file

@ -18,7 +18,7 @@ func main() {
e.POST("/task", handlers.PostTask(db))
e.PUT("/task", handlers.PutTask(db))
e.DELETE("/task/:id", handlers.DeleteTask(db))
e.Logger.Fatal(e.Start(":8080"))
e.Start(":8080")
}
func initDb(filepath string) *sql.DB {