Skip to content

rsboggs/pug-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PUG Server

Pug server repository for all your pug api routes.

Version

1.0.0

Installation

$ npm install
$ grunt deploy

Todos

  • Prevent creation of duplicate events (same address and time)
  • More efficient way to remove expired events from a user's events list

API Routes Examples

'/api/users/:id/event'
GET request
Request body : {}
Response body: Array of event ids
'/api/events'
GET request
Request body : {}
Response body: Array of event objects
'/api/events/:id'
GET request
Request body : {}
Response body: Event object
'/api/events'
POST request
Request body : {
    type: String,
    location: String,
    latitude: Number,
    longitude: Number,
    startTime: Date,
    endTime: Date,
    skillLevel: String
}
Response body: Event object
'/api/events/users/:id'
POST request
Request body : {
    eventId: String
}
Response body: none
'/api/events/users/:id'
DELETE request
Request body : {
    eventId: String
}
Response body: none

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%