UNPKG
express-generator-template
Version:
latest (1.2.0)
1.2.0
1.1.0
1.0.1
1.0.0
Express with Typescript Template
github.com/mimamch/express-typescript
mimamch/express-typescript
express-generator-template
/
template
/
main-template
/
src
/
app
/
routes
/
product_routes.ts
9 lines
(5 loc)
•
202 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
import
{
Router
}
from
"express"
;
import
{ getProducts }
from
"../controllers/product_controllers"
;
const
ProductRouter
=
Router
();
ProductRouter
.
get
(
"/"
, getProducts);
export
default
ProductRouter
;