Skip to content

Commit

Permalink
Merge pull request #117 from velocitycareerlabs/VL-8115-nrefactor-1
Browse files Browse the repository at this point in the history
refactor routes
  • Loading branch information
michaelavoyan authored Jul 11, 2024
2 parents 25c9b7c + da3f2fd commit f3d9325
Show file tree
Hide file tree
Showing 23 changed files with 120 additions and 408 deletions.
7 changes: 1 addition & 6 deletions packages/sample-server/src/App.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,10 @@
import fastify, { FastifyInstance, FastifyServerOptions } from "fastify";
import autoload from "@fastify/autoload";
import path from "path";
import { errorSchema } from "./schemas/ErrorSchema";
interface buildOpts extends FastifyServerOptions {}

const build = (opts: buildOpts = {}): FastifyInstance => {
const build = (opts: FastifyServerOptions = {}): FastifyInstance => {
const app = fastify(opts);

// add in common schemas
app.addSchema(errorSchema);

app.register(autoload, {
dir: path.join(__dirname, "routes"),
});
Expand Down
20 changes: 0 additions & 20 deletions packages/sample-server/src/controllers/CheckForOffers.ts

This file was deleted.

20 changes: 0 additions & 20 deletions packages/sample-server/src/controllers/FinalizeOffers.ts

This file was deleted.

16 changes: 0 additions & 16 deletions packages/sample-server/src/controllers/GenerateDidJwk.ts

This file was deleted.

18 changes: 0 additions & 18 deletions packages/sample-server/src/controllers/GenerateOffers.ts

This file was deleted.

21 changes: 0 additions & 21 deletions packages/sample-server/src/controllers/GenerateSignedJwt.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/sample-server/src/controllers/GetCountries.ts

This file was deleted.

21 changes: 0 additions & 21 deletions packages/sample-server/src/controllers/GetCredentialManifest.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/sample-server/src/controllers/GetCredentialTypeSchemas.ts

This file was deleted.

14 changes: 0 additions & 14 deletions packages/sample-server/src/controllers/GetCredentialTypes.ts

This file was deleted.

This file was deleted.

24 changes: 0 additions & 24 deletions packages/sample-server/src/controllers/GetExchangeProgress.ts

This file was deleted.

19 changes: 0 additions & 19 deletions packages/sample-server/src/controllers/GetPresentationRequest.ts

This file was deleted.

19 changes: 0 additions & 19 deletions packages/sample-server/src/controllers/GetVerifiedProfile.ts

This file was deleted.

19 changes: 0 additions & 19 deletions packages/sample-server/src/controllers/SearchForOrganizations.ts

This file was deleted.

17 changes: 0 additions & 17 deletions packages/sample-server/src/controllers/SubmitPresentation.ts

This file was deleted.

21 changes: 0 additions & 21 deletions packages/sample-server/src/controllers/VerifyJwt.ts

This file was deleted.

42 changes: 0 additions & 42 deletions packages/sample-server/src/controllers/index.ts

This file was deleted.

Loading

0 comments on commit f3d9325

Please sign in to comment.