mirror of
https://github.com/uetchy/namae.git
synced 2025-09-10 10:06:39 +09:00
feat(api): typescript
This commit is contained in:
6
now.json
6
now.json
@@ -9,14 +9,14 @@
|
||||
"config": { "distDir": "build" }
|
||||
},
|
||||
{
|
||||
"src": "/api/services/*.js",
|
||||
"use": "@now/node"
|
||||
"src": "/api/services/*.ts",
|
||||
"use": "@now/node@canary"
|
||||
}
|
||||
],
|
||||
"routes": [
|
||||
{
|
||||
"src": "/availability/(?<provider>[^/]+)/(?<query>[^/]+)",
|
||||
"dest": "/api/services/$provider.js?query=$query"
|
||||
"dest": "/api/services/$provider.ts?query=$query"
|
||||
},
|
||||
{
|
||||
"src": "/(.*)",
|
||||
|
Reference in New Issue
Block a user