diff --git a/src/db/migrations/schema.ts b/src/db/migrations/schema.ts index b7648c9410e0865731c97c7de3c2396d27120761..aa7bed1504dc58f1c6fd54f494e77d2f8833e9e5 100644 --- a/src/db/migrations/schema.ts +++ b/src/db/migrations/schema.ts @@ -1,5 +1,4 @@ import { pgTable, unique, serial, varchar, timestamp, numeric, foreignKey, integer, pgEnum } from "drizzle-orm/pg-core" -import { sql } from "drizzle-orm" export const bodyPartsEnum = pgEnum("bodyPartsEnum", ['FrontalCortex', 'OperatingSystem', 'Arms', 'Skeleton', 'NervousSystem', 'IntegumentarySystem', 'Face', 'Hands', 'CirculatorySystem', 'Legs']) diff --git a/src/index.ts b/src/index.ts index 6a2111509216a83de687e2853dd58bf27987a858..7958f8ef0b10a61225f6c332671dbda5e5ded991 100644 --- a/src/index.ts +++ b/src/index.ts @@ -25,7 +25,7 @@ app.post('/addImplant', tokenAuthenticator, implant.implantCreate) app.get('/getImplant/:id', implant.implantRead) app.put('/updateImplant/:id', tokenAuthenticator, implant.implantUpdate) app.delete('/deleteImplant/:id', tokenAuthenticator, implant.implantDelete) -//app.post('/purchase', tokenAuthenticator, implant.buy) +app.post('/purchase', tokenAuthenticator, implant.implantBuy) // Definir a porta e iniciar o servidor