Skip to content

Commit

Permalink
chore(versions): rebased master
Browse files Browse the repository at this point in the history
  • Loading branch information
thepatrickniyo committed Mar 25, 2022
2 parents d588901 + c77f9bf commit f2a70b8
Show file tree
Hide file tree
Showing 10 changed files with 2,317 additions and 123 deletions.
2,350 changes: 2,304 additions & 46 deletions package-lock.json

Large diffs are not rendered by default.

22 changes: 11 additions & 11 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ import 'module-alias/register';
import 'dotenv/config';
import express from 'express';
import session from 'express-session';
import { greeterRouter } from '@controllers/';
import passport from './strategies/stackoverflow.strategy';
import AuthRouter from './routes/auth.routes';
import {TagsRouter} from './routes/tags.router';
import { TagsRouter } from './routes/tags.router';
import { UsersRouter } from './routes/users.router';
import { TopicsRouter } from './routes/topics.router';
import { FullTextSearchRouter } from './routes';
Expand All @@ -18,23 +17,24 @@ app.use(passport.initialize());
passport.serializeUser(function (user: User | any, done: any) {
done(null, user);
});
passport.deserializeUser(function (user: User , done: any) {
passport.deserializeUser(function (user: User, done: any) {
done(null, user);
});
app.use(session({
resave: false,
saveUninitialized: true,
secret: process.env.PASSPORT_SECRET || "adka-133a"
}));
app.use(
session({
resave: false,
saveUninitialized: true,
secret: process.env.PASSPORT_SECRET || 'adka-133a',
})
);
app.use(passport.session());
app.get('/', (req, res) => {
return res.status(200).json({ message: "Welcome to the Stackoverflow Microservice API" });
return res.status(200).json({ message: 'Welcome to the Stackoverflow Microservice API' });
});
app.use('/api', greeterRouter);
app.use(`${API_PREFIX}/auth`, AuthRouter);
app.use(`${API_PREFIX}/tags`, TagsRouter);
app.use(`${API_PREFIX}/users`, UsersRouter);
app.use(`${API_PREFIX}/topics`, TopicsRouter);
app.use(`${API_PREFIX}/full-text-search`, FullTextSearchRouter);

export default app;
export default app;
20 changes: 0 additions & 20 deletions src/controllers/greeter/greeter-controller.ts

This file was deleted.

15 changes: 0 additions & 15 deletions src/controllers/greeter/greeter-router.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/controllers/greeter/index.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/controllers/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export * from './greeter';
export * from './auth-controller';
export * from './tags-controller';
export * from './topics-controller';
export * from './full-text-search-controller';
export * from './full-text-search-controller';
6 changes: 0 additions & 6 deletions src/service/greeter-service/greeter-service.ts

This file was deleted.

1 change: 0 additions & 1 deletion src/service/greeter-service/index.ts

This file was deleted.

3 changes: 1 addition & 2 deletions src/service/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
export * from './greeter-service';
export * from './stack-exchange-service';
export * from './stack-exchange-service';
19 changes: 0 additions & 19 deletions test/unit/services/greeter-service/greeter-service.test.ts

This file was deleted.

0 comments on commit f2a70b8

Please sign in to comment.