Inital commit
This commit is contained in:
0
apiHandler/stub/db_table_config.sql
Normal file
0
apiHandler/stub/db_table_config.sql
Normal file
1
apiHandler/stub/db_table_config.sql.template
Normal file
1
apiHandler/stub/db_table_config.sql.template
Normal file
@ -0,0 +1 @@
|
||||
|
28
apiHandler/stub/main.js
Normal file
28
apiHandler/stub/main.js
Normal file
@ -0,0 +1,28 @@
|
||||
let con = undefined;
|
||||
|
||||
function initialize(connection) {
|
||||
con = connection;
|
||||
// Do nothing and die.
|
||||
}
|
||||
|
||||
function queryData(lat, lng, radius, minimal) {
|
||||
// Does nothing.
|
||||
return new Promise(function (resolve, reject) {resolve([]);});
|
||||
}
|
||||
|
||||
function queryItem(uid) {
|
||||
// Does nothing.
|
||||
return new Promise(function (resolve, reject) {resolve([]);});
|
||||
}
|
||||
|
||||
function getModuleMeta() {
|
||||
return {
|
||||
title: "Stub",
|
||||
exactName: "stub",
|
||||
country: [""],
|
||||
tags: [""],
|
||||
limited: true,
|
||||
};
|
||||
}
|
||||
|
||||
module.exports = { initialize, queryData, getModuleMeta, queryItem };
|
Reference in New Issue
Block a user