Initial T06 security template
This commit is contained in:
19
api/src/data.js
Normal file
19
api/src/data.js
Normal file
@@ -0,0 +1,19 @@
|
||||
const users = [
|
||||
{ id: 'u0', username: 'student', password: 'fpmoz2024', name: 'Demo Student', role: 'student' },
|
||||
{ id: 'u1', username: 'student1', password: 'pass1', name: 'Student Jedan', role: 'student' },
|
||||
{ id: 'u2', username: 'student2', password: 'pass2', name: 'Student Dva', role: 'student' }
|
||||
];
|
||||
|
||||
const profiles = {
|
||||
u0: { id: 'u0', name: 'Demo Student', email: 'student@fpmoz.sum.ba', role: 'student' },
|
||||
u1: { id: 'u1', name: 'Student Jedan', email: 'student1@fpmoz.sum.ba', role: 'student' },
|
||||
u2: { id: 'u2', name: 'Student Dva', email: 'student2@fpmoz.sum.ba', role: 'student' }
|
||||
};
|
||||
|
||||
const orders = [
|
||||
{ id: 1, userId: 'u1', item: 'Knjiga: Mikroservisi', amount: 25 },
|
||||
{ id: 2, userId: 'u2', item: 'Knjiga: API Security', amount: 30 },
|
||||
{ id: 3, userId: 'u1', item: 'Tečaj: Docker osnove', amount: 15 }
|
||||
];
|
||||
|
||||
module.exports = { users, profiles, orders };
|
||||
Reference in New Issue
Block a user