-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.ts
More file actions
28 lines (16 loc) · 683 Bytes
/
Copy pathindex.ts
File metadata and controls
28 lines (16 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import atomValidators from "./lib/atomValidators";
export {atomValidators};
// Testing Apis and Validators
// import express from "express"
// import {Request, Response} from "express"
// const app = express()
// app.use(express.json())
// app.get("/testing", (req, res, )=>{
// console.log("API HIT")
// console.log(req.body)
// res.status(404).json(atomValidators.sqlInjectionFunction(req))
// })
// app.post("/testing/middleware", atomValidators.sqlInjectionMiddleware, (request: Request, response : Response)=> {
// return response.status(200).json({code : 200, message : "success"})
// })
// app.listen(3000, ()=>console.log("listening on the port"))