about summary refs log tree commit diff
path: root/bskylink/src/routes/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'bskylink/src/routes/index.ts')
-rw-r--r--bskylink/src/routes/index.ts8
1 files changed, 5 insertions, 3 deletions
diff --git a/bskylink/src/routes/index.ts b/bskylink/src/routes/index.ts
index f60b99bcb..cfdaf3eaa 100644
--- a/bskylink/src/routes/index.ts
+++ b/bskylink/src/routes/index.ts
@@ -1,9 +1,10 @@
 import {Express} from 'express'
 
 import {AppContext} from '../context.js'
-import {default as create} from './create.js'
+import {default as createShortLink} from './createShortLink.js'
 import {default as health} from './health.js'
 import {default as redirect} from './redirect.js'
+import {default as shortLink} from './shortLink.js'
 import {default as siteAssociation} from './siteAssociation.js'
 
 export * from './util.js'
@@ -11,7 +12,8 @@ export * from './util.js'
 export default function (ctx: AppContext, app: Express) {
   app = health(ctx, app) // GET /_health
   app = siteAssociation(ctx, app) // GET /.well-known/apple-app-site-association
-  app = create(ctx, app) // POST /link
-  app = redirect(ctx, app) // GET /:linkId (should go last due to permissive matching)
+  app = redirect(ctx, app) // GET /redirect
+  app = createShortLink(ctx, app) // POST /link
+  app = shortLink(ctx, app) // GET /:linkId (should go last due to permissive matching)
   return app
 }