UNPKG
@kwalox/create-node-app
Version:
latest (3.0.0)
3.0.0
2.1.0
2.0.0
1.1.0
1.0.1
1.0.0
CLI command to bootstrap Node project
github.com/KwalOx/create-node-app
KwalOx/create-node-app
@kwalox/create-node-app
/
templates
/
typescript-express
/
src
/
routes.ts
7 lines
(5 loc)
•
196 B
text/typescript
View Raw
1
2
3
4
5
6
7
import
{
Express
}
from
"express"
import
{ getAllUsersHandler }
from
"./User/user.controller"
export
default
function
routes
(
app: Express
) { app.
get
(
"/api/v1/users"
, getAllUsersHandler) }