Skip to content

Commit

Permalink
Revert "add instrument test route to API"
Browse files Browse the repository at this point in the history
This reverts commit 24ce915.
  • Loading branch information
44100hertz committed Jul 22, 2024
1 parent 81f67a5 commit 2c0e111
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 122 deletions.
2 changes: 0 additions & 2 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@
"devDependencies": {
"@types/bcrypt": "^5.0.0",
"@types/body-parser": "^1.19.5",
"@types/cors": "^2.8.17",
"@types/express": "^4.17.14",
"@types/jsonwebtoken": "^8.5.9",
"@types/mongoose": "^5.11.97",
"cors": "^2.8.5",
"ts-node-dev": "^2.0.0",
"typescript": "^4.8.4"
},
Expand Down
22 changes: 2 additions & 20 deletions api/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions api/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import express from 'express';
import mongoose, { ConnectOptions } from 'mongoose';
import { json } from 'body-parser';
import cors from 'cors';
import routes from './routes/index';

// Middleware
Expand All @@ -10,7 +9,6 @@ import config from './config';

const app = express();
app.use(json());
app.use(cors());

// Add the routes with the base prefix
app.use('/' + config.prefix, routes);
Expand Down
33 changes: 0 additions & 33 deletions api/src/models/instrument.ts

This file was deleted.

2 changes: 0 additions & 2 deletions api/src/routes/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
import { Router } from 'express';
import auth from './auth';
import user from './user';
import instrument from './instrument';

const routes = Router();

routes.use('/auth', auth);
routes.use('/users', user);
routes.use('/instruments', instrument);

export default routes;
63 changes: 0 additions & 63 deletions api/src/routes/instrument.ts

This file was deleted.

0 comments on commit 2c0e111

Please sign in to comment.