Skip to content

Commit

Permalink
officially removed v1 endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewmeyer committed Nov 30, 2017
1 parent 2348c3c commit 8cb958e
Show file tree
Hide file tree
Showing 8 changed files with 0 additions and 372 deletions.
16 changes: 0 additions & 16 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,6 @@ const config = require("./config.json")
const MongoClient = require("mongodb")
const app = express()

const home = require("./v1-routes/v1-home")
const info = require("./v1-routes/v1-info")
const vehicles = require("./v1-routes/v1-vehicles")
const launchpad = require("./v1-routes/v1-launchpad")
const launches = require("./v1-routes/v1-launches")
const upcoming = require("./v1-routes/v1-upcoming")
const parts = require("./v1-routes/v1-parts")

const v2_home = require("./v2-routes/v2-home")
const v2_info = require("./v2-routes/v2-info")
const v2_vehicles = require("./v2-routes/v2-vehicles")
Expand All @@ -36,14 +28,6 @@ app.use((req, res, next) => {
next()
})

app.use("/v1", home)
app.use("/v1/info", info)
app.use("/v1/vehicles", vehicles)
app.use("/v1/launchpads", launchpad)
app.use("/v1/launches", launches)
app.use("/v1/launches/upcoming", upcoming)
app.use("/v1/parts", parts)

app.use("/v2", v2_home)
app.use("/v2/info", v2_info)
app.use("/v2/vehicles", v2_vehicles)
Expand Down
16 changes: 0 additions & 16 deletions v1-routes/v1-home.js

This file was deleted.

16 changes: 0 additions & 16 deletions v1-routes/v1-info.js

This file was deleted.

148 changes: 0 additions & 148 deletions v1-routes/v1-launches.js

This file was deleted.

26 changes: 0 additions & 26 deletions v1-routes/v1-launchpad.js

This file was deleted.

61 changes: 0 additions & 61 deletions v1-routes/v1-parts.js

This file was deleted.

33 changes: 0 additions & 33 deletions v1-routes/v1-upcoming.js

This file was deleted.

56 changes: 0 additions & 56 deletions v1-routes/v1-vehicles.js

This file was deleted.

0 comments on commit 8cb958e

Please sign in to comment.