Skip to content

Instantly share code, notes, and snippets.

@kauemurakami
Created June 1, 2020 17:57
Show Gist options
  • Save kauemurakami/f2875ccc77212e23971fc3ee22237b0b to your computer and use it in GitHub Desktop.
Save kauemurakami/f2875ccc77212e23971fc3ee22237b0b to your computer and use it in GitHub Desktop.
arquivo principal
import { App, Request, Response } from "https://deno.land/x/attain/mod.ts";
import "./config/db.ts"
import clientsRouter from "./routes/clients.router.ts"
const app = new App()
app.use("/clients", clientsRouter)
app.use((req : Request, res: Response) => {
res.status(404).send("not found")
})
app.listen({port: 3333})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment