Created
June 1, 2020 17:57
-
-
Save kauemurakami/f2875ccc77212e23971fc3ee22237b0b to your computer and use it in GitHub Desktop.
arquivo principal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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