From d41ce873347862c0f715f0fa81339e9c56356bb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 27 Jan 2021 17:44:48 -0500 Subject: [PATCH] fix: removed object routes --- test/controllers.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/controllers.js b/test/controllers.js index 1ea4e8370d..6482163e06 100644 --- a/test/controllers.js +++ b/test/controllers.js @@ -754,7 +754,7 @@ describe('Controllers', function () { }); it('should get post data', function (done) { - request(nconf.get('url') + '/api/post/pid/' + pid, function (err, res, body) { + request(nconf.get('url') + '/api/v3/posts/' + pid, function (err, res, body) { assert.ifError(err); assert.equal(res.statusCode, 200); assert(body); @@ -763,7 +763,7 @@ describe('Controllers', function () { }); it('should get topic data', function (done) { - request(nconf.get('url') + '/api/topic/tid/' + tid, function (err, res, body) { + request(nconf.get('url') + '/api/v3/topics/' + tid, function (err, res, body) { assert.ifError(err); assert.equal(res.statusCode, 200); assert(body); @@ -772,7 +772,7 @@ describe('Controllers', function () { }); it('should get category data', function (done) { - request(nconf.get('url') + '/api/category/cid/' + cid, function (err, res, body) { + request(nconf.get('url') + '/api/v3/categories/' + cid, function (err, res, body) { assert.ifError(err); assert.equal(res.statusCode, 200); assert(body);