@opengis/fastify-table 1.0.50 → 1.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Changelog.md +4 -0
- package/crud/controllers/next.id.js +4 -0
- package/crud/index.js +2 -0
- package/package.json +1 -1
package/Changelog.md
CHANGED
package/crud/index.js
CHANGED
|
@@ -4,6 +4,7 @@ import isFileExists from './funcs/isFileExists.js';
|
|
|
4
4
|
import dataUpdate from './funcs/dataUpdate.js';
|
|
5
5
|
import dataInsert from './funcs/dataInsert.js';
|
|
6
6
|
|
|
7
|
+
import nextId from './controllers/next.id.js';
|
|
7
8
|
import update from './controllers/update.js';
|
|
8
9
|
import insert from './controllers/insert.js';
|
|
9
10
|
import deleteCrud from './controllers/deleteCrud.js';
|
|
@@ -24,6 +25,7 @@ async function plugin(fastify, config = {}) {
|
|
|
24
25
|
fastify.decorate('isFileExists', isFileExists);
|
|
25
26
|
|
|
26
27
|
// api
|
|
28
|
+
fastify.get(`${prefix}/next-id`, {}, nextId);
|
|
27
29
|
fastify.put(`${prefix}/table/:table/:id`, {}, update);
|
|
28
30
|
fastify.delete(`${prefix}/table/:table/:id`, {}, deleteCrud);
|
|
29
31
|
fastify.post(`${prefix}/table/:table`, {}, insert);
|