Remove legacy configuration files and scripts, transitioning to Vite for build and development processes. Introduce new HTML files for the landing and terms pages, along with stubs for API responses. Update package.json and package-lock.json to include Vite and related dependencies, enhancing the project structure and build efficiency.
This commit is contained in:
11
stubs/api/test.js
Normal file
11
stubs/api/test.js
Normal file
@@ -0,0 +1,11 @@
|
||||
// Пример stub файла для /api/test
|
||||
module.exports = (req, res) => {
|
||||
res.setHeader('Content-Type', 'application/json');
|
||||
res.end(JSON.stringify({
|
||||
message: 'Hello from stub!',
|
||||
timestamp: new Date().toISOString(),
|
||||
method: req.method,
|
||||
url: req.url,
|
||||
}));
|
||||
};
|
||||
|
||||
8
stubs/api/user.js
Normal file
8
stubs/api/user.js
Normal file
@@ -0,0 +1,8 @@
|
||||
// Пример stub для /api/user
|
||||
module.exports.default = {
|
||||
id: 1,
|
||||
name: 'Test User',
|
||||
email: 'user@brojs.ru',
|
||||
role: 'student'
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user