Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable delete endpoint for now #27

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,6 @@ server.post(
require(__dirname + "/routes/v1/post-tree.js")
)

server.del(
{
path: "/tree/:key",
},
require(__dirname + "/routes/v1/delete-tree.js")
)

server.post(
{
path: "/sign",
Expand Down
28 changes: 0 additions & 28 deletions routes/v1/delete-tree.js

This file was deleted.

6 changes: 0 additions & 6 deletions test/testTree.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
const app = require("../index")
const request = require("supertest")

describe("Deleting a tree", function () {
it("should return an error if the tree doesn't exist", function (done) {
request(app).delete("/tree/this-is-not-a-valid-tree-id").expect(404, done)
})
})

describe("Asking for a tree", function () {
it("should return an error for an invalid request", function (done) {
request(app).get("/tree/").expect(409, done)
Expand Down
Loading