upgraded jwt-go to latest version APIs now work

This commit is contained in:
Suraj Patil 2016-08-28 13:38:00 +05:30
parent e0ec55ac2c
commit f94da496eb
2 changed files with 671 additions and 647 deletions

20
main.go
View File

@ -71,17 +71,17 @@ func main() {
http.Handle("/static/", http.FileServer(http.Dir("public"))) http.Handle("/static/", http.FileServer(http.Dir("public")))
// http.HandleFunc("/api/get-task/", views.GetTasksFuncAPI) http.HandleFunc("/api/get-task/", views.GetTasksFuncAPI)
// http.HandleFunc("/api/get-deleted-task/", views.GetDeletedTaskFuncAPI) http.HandleFunc("/api/get-deleted-task/", views.GetDeletedTaskFuncAPI)
// http.HandleFunc("/api/add-task/", views.AddTaskFuncAPI) http.HandleFunc("/api/add-task/", views.AddTaskFuncAPI)
// http.HandleFunc("/api/update-task/", views.UpdateTaskFuncAPI) http.HandleFunc("/api/update-task/", views.UpdateTaskFuncAPI)
// http.HandleFunc("/api/delete-task/", views.DeleteTaskFuncAPI) http.HandleFunc("/api/delete-task/", views.DeleteTaskFuncAPI)
// http.HandleFunc("/api/get-token/", views.GetTokenHandler) http.HandleFunc("/api/get-token/", views.GetTokenHandler)
// http.HandleFunc("/api/get-category/", views.GetCategoryFuncAPI) http.HandleFunc("/api/get-category/", views.GetCategoryFuncAPI)
// http.HandleFunc("/api/add-category/", views.AddCategoryFuncAPI) http.HandleFunc("/api/add-category/", views.AddCategoryFuncAPI)
// http.HandleFunc("/api/update-category/", views.UpdateCategoryFuncAPI) http.HandleFunc("/api/update-category/", views.UpdateCategoryFuncAPI)
// http.HandleFunc("/api/delete-category/", views.DeleteCategoryFuncAPI) http.HandleFunc("/api/delete-category/", views.DeleteCategoryFuncAPI)
log.Println("running server on ", values.ServerPort) log.Println("running server on ", values.ServerPort)
log.Fatal(http.ListenAndServe(values.ServerPort, nil)) log.Fatal(http.ListenAndServe(values.ServerPort, nil))

File diff suppressed because it is too large Load Diff