mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fix: removed object routes
This commit is contained in:
@@ -754,7 +754,7 @@ describe('Controllers', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should get post data', function (done) {
|
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.ifError(err);
|
||||||
assert.equal(res.statusCode, 200);
|
assert.equal(res.statusCode, 200);
|
||||||
assert(body);
|
assert(body);
|
||||||
@@ -763,7 +763,7 @@ describe('Controllers', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should get topic data', function (done) {
|
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.ifError(err);
|
||||||
assert.equal(res.statusCode, 200);
|
assert.equal(res.statusCode, 200);
|
||||||
assert(body);
|
assert(body);
|
||||||
@@ -772,7 +772,7 @@ describe('Controllers', function () {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('should get category data', function (done) {
|
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.ifError(err);
|
||||||
assert.equal(res.statusCode, 200);
|
assert.equal(res.statusCode, 200);
|
||||||
assert(body);
|
assert(body);
|
||||||
|
|||||||
Reference in New Issue
Block a user