Skip to content

Commit

Permalink
feat: Implement CRUD for user
Browse files Browse the repository at this point in the history
  • Loading branch information
fadhlaouir committed Mar 15, 2024
1 parent 51d57b5 commit 509df72
Show file tree
Hide file tree
Showing 6 changed files with 183 additions and 396 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ app.use(express.static(path.join(__dirname, 'uploads')));
app.use(cors());

// Require APIs
const userRoutes = require('./src/routes/auth.route');
const eventRoutes = require('./src/routes/event.route');
const authRoutes = require('./src/routes/auth.route');
const userRoutes = require('./src/routes/user.route');

// local APIs
app.use('/v1/api', authRoutes);
app.use('/v1/api', userRoutes);
app.use('/v1/api', eventRoutes);

// API for uploads file (photo, galleries)
app.get('/uploads/:id', (req, res) => {
Expand Down
317 changes: 0 additions & 317 deletions src/controllers/event.controller.js

This file was deleted.

Loading

0 comments on commit 509df72

Please sign in to comment.