mirror of
https://github.com/Floriansylvain/SnippetsManager.git
synced 2026-08-19 11:43:15 +02:00
Added language router for future implementation
This commit is contained in:
@@ -0,0 +1,23 @@
|
|||||||
|
import { Language, PrismaClient } from ".prisma/client"
|
||||||
|
import express, { RequestHandler } from "express"
|
||||||
|
import { z } from "zod"
|
||||||
|
|
||||||
|
const langRouter = express.Router()
|
||||||
|
const prisma = new PrismaClient()
|
||||||
|
|
||||||
|
const newLang = z.object({
|
||||||
|
name: z.string()
|
||||||
|
})
|
||||||
|
|
||||||
|
const langRouterGet: RequestHandler = (res, req, next) => {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
const langRouterPost: RequestHandler = (res, req, next) => {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
langRouter.get('/', langRouterGet)
|
||||||
|
langRouter.post('/', langRouterPost)
|
||||||
|
|
||||||
|
export default langRouter
|
||||||
Reference in New Issue
Block a user