forked from OrgGo/Tasks
upgraded jwt-go to latest version APIs now work
This commit is contained in:
parent
e0ec55ac2c
commit
f94da496eb
20
main.go
20
main.go
|
@ -71,17 +71,17 @@ func main() {
|
|||
|
||||
http.Handle("/static/", http.FileServer(http.Dir("public")))
|
||||
|
||||
// http.HandleFunc("/api/get-task/", views.GetTasksFuncAPI)
|
||||
// http.HandleFunc("/api/get-deleted-task/", views.GetDeletedTaskFuncAPI)
|
||||
// http.HandleFunc("/api/add-task/", views.AddTaskFuncAPI)
|
||||
// http.HandleFunc("/api/update-task/", views.UpdateTaskFuncAPI)
|
||||
// http.HandleFunc("/api/delete-task/", views.DeleteTaskFuncAPI)
|
||||
http.HandleFunc("/api/get-task/", views.GetTasksFuncAPI)
|
||||
http.HandleFunc("/api/get-deleted-task/", views.GetDeletedTaskFuncAPI)
|
||||
http.HandleFunc("/api/add-task/", views.AddTaskFuncAPI)
|
||||
http.HandleFunc("/api/update-task/", views.UpdateTaskFuncAPI)
|
||||
http.HandleFunc("/api/delete-task/", views.DeleteTaskFuncAPI)
|
||||
|
||||
// http.HandleFunc("/api/get-token/", views.GetTokenHandler)
|
||||
// http.HandleFunc("/api/get-category/", views.GetCategoryFuncAPI)
|
||||
// http.HandleFunc("/api/add-category/", views.AddCategoryFuncAPI)
|
||||
// http.HandleFunc("/api/update-category/", views.UpdateCategoryFuncAPI)
|
||||
// http.HandleFunc("/api/delete-category/", views.DeleteCategoryFuncAPI)
|
||||
http.HandleFunc("/api/get-token/", views.GetTokenHandler)
|
||||
http.HandleFunc("/api/get-category/", views.GetCategoryFuncAPI)
|
||||
http.HandleFunc("/api/add-category/", views.AddCategoryFuncAPI)
|
||||
http.HandleFunc("/api/update-category/", views.UpdateCategoryFuncAPI)
|
||||
http.HandleFunc("/api/delete-category/", views.DeleteCategoryFuncAPI)
|
||||
|
||||
log.Println("running server on ", values.ServerPort)
|
||||
log.Fatal(http.ListenAndServe(values.ServerPort, nil))
|
||||
|
|
1298
views/api.go
1298
views/api.go
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue