Skip to content

Commit

Permalink
Merge pull request #4 from Ray-D-Song/hotfix
Browse files Browse the repository at this point in the history
hotfix: token auth middleware
  • Loading branch information
Ray-D-Song authored Oct 23, 2024
2 parents 7ab2106 + 0d5baf3 commit 1ed886e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/server/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,13 @@ app.get('/', async (c) => {
})

const api = new Hono<HonoTypeUserInformation>()
api.route('/pages', pages.use(tokenMiddleware))
api.route('/auth', auth.use(tokenMiddleware))
api.route('/folders', folders.use(tokenMiddleware))
api.route('/showcase', showcase)

api.use(tokenMiddleware)

api.route('/pages', pages)
api.route('/auth', auth)
api.route('/folders', folders)
app.route('/api', api)

export default app

0 comments on commit 1ed886e

Please sign in to comment.