mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-05 07:16:37 +00:00
Ability to retrieve all (limited to 1000 right now)
This commit is contained in:
@@ -2,6 +2,10 @@ var auth = require('../../core/jwt_auth.js').auth;
|
||||
var sql = require('./sql.js');
|
||||
|
||||
var RegisterEndpoint = function(app, api, single_name, plural_name, pkey, skeys) {
|
||||
app.get('/api/data/' + single_name, auth, function (req, res) {
|
||||
sql.RetrieveAll(req, res, plural_name, pkey);
|
||||
});
|
||||
|
||||
app.get('/api/data/' + single_name + '/:' + pkey, auth, function (req, res) {
|
||||
sql.Retrieve(req, res, plural_name, pkey);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user