Squashed commit of the following:
commit e9e359ca8d8b2d98feefeff4e2fd1ac4a1604f2f Author: Roberto Tonino <roberto.tonino5@gmail.com> Date: Fri Apr 9 18:37:25 2021 +0200 chore: updated patch and minor version deps commit a9db754ba5623ee7ae5f171c891f4e572e6b5f22 Author: Roberto Tonino <roberto.tonino5@gmail.com> Date: Sat Apr 3 19:58:19 2021 +0200 feat: added blank route files
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { ApiHandler } from '../../../types'
|
||||
|
||||
const path: ApiHandler['path'] = '/getHome'
|
||||
|
||||
const handler: ApiHandler['handler'] = (_, res) => {
|
||||
res.send('getHome')
|
||||
}
|
||||
|
||||
const apiHandler: ApiHandler = { path, handler }
|
||||
|
||||
export default apiHandler
|
||||
@@ -1,3 +1,4 @@
|
||||
import sample from './sample'
|
||||
import getHome from './getHome'
|
||||
|
||||
export default [sample]
|
||||
export default [sample, getHome]
|
||||
|
||||
Reference in New Issue
Block a user