Implement SimpleNote Web API - full REST API with Express
- Express server with CORS, JSON middleware - Auth middleware (Bearer token) - Document CRUD with markdown storage - Library CRUD with nested support - Tag indexing and search - Error handler middleware - Config from env vars - Init script for data structure
This commit is contained in:
11
src/utils/uuid.js
Normal file
11
src/utils/uuid.js
Normal file
@@ -0,0 +1,11 @@
|
||||
/**
|
||||
* SimpleNote Web - UUID Helper
|
||||
*/
|
||||
|
||||
import { v4 as uuidv4 } from 'uuid';
|
||||
|
||||
export function generateId() {
|
||||
return uuidv4();
|
||||
}
|
||||
|
||||
export default { generateId };
|
||||
Reference in New Issue
Block a user