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:
1 parent
ebf0daacce
commit
7907238c1a
27 files changed
+1461
-621
No files matched your search
@@ -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,
|
||||
}));
|
||||
};
|
||||
|
||||
@@ -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