UNPKG
expresss-ts
Version:
latest (1.0.7)
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
CLI to create an Express TypeScript starter project
expresss-ts
/
src
/
routes
/
example.routes.ts
10 lines
(6 loc)
•
228 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
express
from
"express"
;
import
{ getExample, postExample }
from
"../controllers/example.controllers"
;
const
router = express.
Router
(); router.
get
(
"/"
, getExample); router.
post
(
"/"
, postExample);
export
default
router;