Skip to content
Snippets Groups Projects
Commit d09791a8 authored by Amanda Pollyanna da Silva Rodrigues's avatar Amanda Pollyanna da Silva Rodrigues
Browse files

ADD purchase route

parent 4403a19a
No related branches found
No related tags found
1 merge request!18ADD purchase route
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'])
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment