Skip to content

joysyj/Sports_Club

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Sports_Club

the server listens to: http://localhost:3000/

To access the api as a user, the user must get user verification token.

For the admin, the admin must get verification token and stored in the local database

Every API called is verified using cookie-parser

examples for API CALLS:

EVENTS{ //Create router.post('/create-event',verifyAdmin, createEvent)

//update router.put("/:id", verifyAdmin, updateEvent); //delete router.delete("/delete/:id", verifyAdmin, deleteEvents); //get router.get("/:id", getEvent); //get list router.get("/getAll", getAllEvents); }

CLUBS:{ //Create router.post('/create-club',verifyAdmin, createClub)

//update router.put("/update/:id", verifyAdmin, updateClub);

//update user router.put("/update-user/:id",verifyUser,registerClub) //delete router.delete("/delete/:id", verifyAdmin, deleteClubs); //get router.get("/get/:id", getClub); //get list

router.get("/getAll", getAllClub);

router.get("/countByClubs", getAllClub);

OUTDOOR / INDOOR router.get("/countByType", countByType);

//Featured Club FEATURED = TRUE router.get("/featured", featuredClub);

//custom search router.get("/search", searchQ);

}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Contributors 4

  •  
  •  
  •  
  •