feat(backend): mount TfL routes in main app
Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
@@ -2,6 +2,7 @@ import { Hono } from "hono"
|
||||
import { cors } from "hono/cors"
|
||||
import { logger } from "hono/logger"
|
||||
import weather from "./weather"
|
||||
import tfl from "./tfl"
|
||||
|
||||
const app = new Hono()
|
||||
|
||||
@@ -19,6 +20,9 @@ app.get("/api/health", (c) => {
|
||||
// Mount weather routes
|
||||
app.route("/api/weather", weather)
|
||||
|
||||
// Mount TfL routes
|
||||
app.route("/api/tfl", tfl)
|
||||
|
||||
export default {
|
||||
port: 8000,
|
||||
fetch: app.fetch,
|
||||
|
||||
Reference in New Issue
Block a user